Questions tagged [tom.net]

The .NET Tridion Object Model (TOM.NET) is the recommended interface to the Content Manager for developing templating, event handling and Workflow (except Automatic Activities).

Filter by
Sorted by
Tagged with
1 vote
2 answers
42 views

EventSystem High CPU Utilization & Delay in Functionality

In SDL Tridion 9.1, we suppose to write Anguilla (JS) Event Handling for Tracking all the Event Logs (like Component checkin, checkout, delete, save, Page publish, unpublish...etc). We upgraded to ...
4 votes
2 answers
74 views

How to get all components of a bundle using TOM .NET

Looking for a sample TOM .NET code how to get all the components of a bundle and then process each component one by one as per their metadata value. Any pointers here , thanks
0 votes
2 answers
975 views

How to create a new component using Tom.Net API in a specific folder? - Tridion 2013

If a page exists in a particular location, that page must contain a particular schema component. If not create a new component and add the same to the page. We thought of implementing the same via ...
0 votes
2 answers
62 views

How to validate using TOM.NET if a Component is present in a specific parent Publication

I'm using SDL Web 8.5 While rendering a Component Presentation from child Publication, I need to validate the presence of the Component in it's top Parent Publication. It might happen that it's been ...
5 votes
1 answer
58 views

Differentiating Original and "Publish in all child" transactions in Events System

Is there any way where I can differentiate Original transactions and the ones which are result of "Publish in all child publications" in Event System using TOM.NET? I need this because I need to work ...
1 vote
1 answer
198 views

Generate Sitemap XML

Our Environment : SDL Tridion 2013 SP1 I'm new to Tridion. We are trying to generate sitemap.xml for the site using Tridion. We wrote TBB which generated the sitemap in XML format and its being ...
7 votes
2 answers
107 views

Reading Tridion Items During Event System Extension Initialization

I am trying to read a component when an event system extension is first initialized in an 8.5 instance. So in my event system extension's constructor, I try to get the component from the Administrator ...
0 votes
2 answers
147 views

Get MIME Type of Multimedia Types based on file extension using TOM.NET (.NET Templating)

Recently I recevied client business requirement to get MIME Type of Multimedia Types item based on extension (External Url) from Tridion using C# Templating. Read all Multimedia Types from ...
1 vote
0 answers
41 views

How to traverse Tridion xml data using Tridion Object Model?

I'm new to Tridion, I would like to use the Tridion Object Model API to get and traverse the Tridion XML data with an XSLT template? How can I do that?
3 votes
2 answers
439 views

How to tackle content migration from Tridion R5.XX to 2011?

I have some legacy web sites on different platforms like Tridion R5, CQ, Sitecore etc. Now I am migrating all of them into one SDL Tridion environment version 2011. So I was wondering if I can ...
6 votes
1 answer
97 views

Identifiableobject Xml Missing Node Info in Web 8.5 While It Exists in 2013 SP1

We are upgrading to Web 8.5 from 2013 SP1 and noticed the TOM.NET API on the C# TBBs by default behave differently on Web 8.5 as opposed to 2013 SP1. We have a C# TBB like this: IdentifiableObject ...
5 votes
1 answer
97 views

Translation Manager .NET API v2 - Session use in event code causes EventSystem.DeliverEvent exception

So I'm playing around with the TM .NET API v2 within some event code. I'm interested in adjusting the Xml sent from TM for translation so am subscribing to IItemSendEventArgs. EventSystem.Subscribe&...
0 votes
2 answers
113 views

Retrieve page or pages that contain certain component on the component presentation list

I need to retrieve the page or pages that are published and the component presentation of the page (or pages) contain a certain component. If a component exists on multiple pages, I would like to know ...
3 votes
1 answer
72 views

Slightly confused over dynamic version

Read the following question which explains TCMs like tcm:x-xx-v0 are created when items are checked out. However when Ive tested using a simple C# TBB: log.Debug("Executing C# template"); Item item ...
4 votes
1 answer
209 views

Set content in Multi-valued text field

I have a field called customerType in the Metadata of a Schema. It is a multi-valued text field. I would like to update the Component using Event System to set the Metadata of this field. So far I am ...
2 votes
2 answers
126 views

Multiple template classes in assembly have the same TcmTemplateTitle attribute - TcmUploadAssembly.exe

I'm getting below error while uploading the .NET Assembly into "Tridion". Error: Multiple template classes in assembly have the same TcmTemplateTitle attribute I tried to rename the "...
9 votes
2 answers
196 views

TOM.NET API - create Session in custom Translation Manager event handler

I'm using a custom event handler to generate an email when the status of Translation Jobs changes to InTranslation and Completed. EventSystem.SubscribeAsync<ITranslationJob, ...
1 vote
1 answer
114 views

Error on Publishing ECL Items

To publish ECL Items we have placed a custom build TBB to add external binary to our file system. On publishing ECL Items we're getting error as Cannot access a closed Stream. Error: The number ...
2 votes
2 answers
82 views

Upgrade TOM API function : GetListMultimediaTypes into Web 8.5 Core Service function

Which is the function in Web 8.5 Core Service for getting the all multimedia types because we need to replace the TOM API function : GetListMultimediaTypes Thanks Shekhar
5 votes
1 answer
118 views

PublishEngine.IsPublished() so slow

We recently migrated from Tridion 2011 to SDL WEB 8.5 and suddenly, in one of our environments (staging), an specific page started to take over 2 hours to being published. This page has a tbb c# ...
0 votes
3 answers
324 views

Synchronize Components after RootElementName change

I've changed the Element Root Name of my Schemas and now I want to synchronize my components with their new Root elements. I'm trying to do it with the CoreService.SynchronizeWithSchemaAndUpdate ...
4 votes
2 answers
178 views

How to update Component link -> embedded Component field value using TOM.NET Event System

I would like to update an embedded Component field value when I check in my Page using TOM.NET Event System but the Component field value update is not happening. I am not sure what am doing wrong ...
2 votes
0 answers
57 views

Facing Issue with RenderedItem.AddBinary method which is deleting the existing Binaries

I am using below lines of code to add the binary in my CT : Tridion.ContentManager.Publishing.Rendering.Binary binary = TridionHelper.Engine.PublishingContext.RenderedItem.AddBinary(component); ...
3 votes
2 answers
156 views

Workflow causing issue during Content Porter of new Components?

We have a workflow enabled at schema level, and the moment new component is being created the workflow locks the component for the further approval tasks described in the workflow. As we also need ...
4 votes
2 answers
102 views

PublishTransaction save event not recording all publish states

We are implementing an Event System to record the publish transaction information to a log file and a custom database. When a single page is published all the states it goes through are being captured ...
7 votes
1 answer
205 views

How to check publishing or rendering context using TOM.NET in the new publishing framework

With regards to publishing and rendering in TOM.NET, I know the following is true for the legacy publishing framework (pre Web 8): Template Builder PublicationTarget is null, RenderMode is ...
7 votes
2 answers
179 views

In the Event System what is the easiest way log all items deleted when an Organizational Item is deleted?

I was writing some code to log User, Id and Webdav when an item is deleted from the CME. My issue is around Organizational Items. Within the DeleteEventArgs I can see that there are 'N' ...
7 votes
3 answers
399 views

Get shared pages using localized component

I'm currently working on a event handler. This will, on a save-event, save the latest revision date of the page and its components into a custom database. It is working, but I'm facing some ...
1 vote
1 answer
73 views

Getting the root Parent Publication using Tom API

I need to get the parent root publication (a publication which is at the topmost in the hierachy) from a specific child publication at any level in the hierarchy. I need to use TOM API and not core ...
1 vote
1 answer
106 views

How to get a specific publication details with metadata values using TOM .NET API and passing the publication name?

I want to get a specific publication details including metadata using TOM.NET API by just passing the Title of the publication? Could you help me with the best way (which method to use etc.)? We are ...
2 votes
1 answer
68 views

Event System is unable to retrieve latest/updated information due to improper caching or session management?

I am facing an issue on our production environment where we have 3 instances of Content Manager. I have developed an event handler which gets invoked on successful published transaction, in which I am ...
2 votes
0 answers
107 views

Need Publication Targets based on the Target Type (for Event System) using TOM.NET API

I started event system code for my project, where I am getting Target Types for a Publication. Please suggest how to get the Publication Targets based on the Target Type: My Requirement is : I need ...
1 vote
1 answer
58 views

Can we Publish component(minor version content) to broker db using TOM.Net API?

We have a scenario where the product component is in workflow and publishes the minor version content to Staging/preview site in Product Detail page. There is also Product landing page which uses tom....
-1 votes
2 answers
496 views

How to debug SDL tridion code?

I am new to Tridion back end coding. I have used the logger for the debug. But I didn't get much information from there. Can anyone please let me know the most common way to debug the code? I am ...
7 votes
2 answers
257 views

UsingItemsFilter not filtering result for publication context

In my c# tbb, I am trying to fetch all the components using the particular keyword in a publication context. The code which I am using is: UsingItemsFilter filter = new UsingItemsFilter(pub.Session) {...
1 vote
1 answer
161 views

Could not load type "Website.TridionCMS.ChildPublicationsOnlyResolver' from assembly 'ChildPublicationsOnlyResolver

I've written a custom resolver to block publish transactions from certain publications by referring through below blog https://www.sdltridionworld.com/community/2011_extensions/...
3 votes
1 answer
265 views

Error while publishing a component from Event System

I am trying to publish a component just after Save event using Event System automatically. I have used the below code. using System; using System.Collections.Generic; using System.IO; ...
2 votes
1 answer
103 views

while reading metadata multi value field of a component, getting double the count of keywords in tom.net TBB

I have a component with a metadata multiselect field as Location, for which options will load from a category. Users are allowed to select more then one option. I have below code which is working fine ...
1 vote
1 answer
126 views

Accessing embedded Schema fields in Template Building Blocks

I'm trying to get embedded Schema field values in a Template Building Block. The field in question is of type "link to Component" and can be present in the Component multiple times. Therefore, I need ...
4 votes
2 answers
166 views

How to track the changes made on Page?

I have a requirement where I need to track the changes made on page every time it is published on PROD. I am planning to use PublishInfo of the page and get the timestamp of second last published ...
1 vote
0 answers
64 views

How to get the groups configured on a publication?

I am using the following code snippet to get the groups configured to a particular publication. var accessRights = publication.AccessControlList.AccessControlEntries; foreach (var accessRightObj in ...
6 votes
1 answer
173 views

Razor templating in Xview framework

I saw the presentantion on xview on the TDS and i really liked it. Is it possible to use a regular razor view and pass the model to the view from the controller so i can use it like this? Hoang Chu ...
1 vote
3 answers
102 views

How to get the differences between the latest version & previous version of an item using TOM.NET?

I have a requirement where I want to compare the latest version of an item with it's previous version and need to track the changes made in it in the External Activity of the workflow. An item can be ...
0 votes
3 answers
250 views

List schema having certain type of field

We performed the bulk update on component using core service and we found out that rich text fields are not updated properly. There are many schema so we want to find out all the schema that contains ...
1 vote
1 answer
126 views

Retrieve component based on user comment and based on schema

We did bulk component update using core service and while updating those components we saved specific comment. Using core service or TOM.Net API, is there any method that can give the component based ...
2 votes
1 answer
109 views

How to derive a Tridion Engine object?

I was trying to create a derived class for Engine abstract class but ended up with the below error. '{Derived Class}' does not implement inherited abstract member 'Tridion.ContentManager....
4 votes
3 answers
498 views

Get Description of a keyword using category.GetListKeywords()

I am using category.GetListKeywords(KeywordsFilter) to get the keyword list of a category. The fetched keyword list xml looks like below: <tcm:ListKeywords xmlns:tcm="http://www.tridion.com/...
4 votes
2 answers
245 views

How to get Publication Title using Tom.net

I'm adding the publication title in config file and from there i want to call that title in the resolved item, but in the below code I'm able to read the Pub ID but it will change across the ...
3 votes
1 answer
98 views

When is it safe to access the template id via the publishing context?

In Tom.Net API for Tridion 2013 SP1 in Engine class for PublishingContext properties there is following remark: The Publishing Context consists of items in the Tridion.ContentManager.Publishing ...
7 votes
3 answers
214 views

Facing issue with our Tridion eventing module on component save and close with multiple user

I am facing some issue with our Tridion eventing module. Please let me explain the issue. Background: We have approx. 70-80 users who create content via CMS where it’s expected that more than 70% of ...