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
43 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 ...
Ajay's user avatar
  • 377
4 votes
2 answers
77 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
Gulshan Thakur's user avatar
0 votes
2 answers
63 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 ...
Suman Daripa's user avatar
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 ...
Sabarish Senthilnathan's user avatar
1 vote
1 answer
207 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 ...
Thakur's user avatar
  • 313
0 votes
2 answers
150 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 ...
Sudhakar Rao's user avatar
  • 1,771
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?
user2993's user avatar
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 ...
Marko Milic's user avatar
  • 8,883
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 ...
Sabarish Senthilnathan's user avatar
5 votes
1 answer
98 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&...
Neil's user avatar
  • 6,698
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 ...
Payam's user avatar
  • 263
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 ...
Habeeb's user avatar
  • 80
3 votes
1 answer
73 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 ...
Neil's user avatar
  • 6,698
9 votes
2 answers
200 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, ...
Neil's user avatar
  • 6,698
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 ...
USER1287's user avatar
  • 169
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
Shekhar Gigras's user avatar
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# ...
Carolina's user avatar
  • 467
4 votes
2 answers
179 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 ...
Jayakumar Devaraj's user avatar
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); ...
Yash's user avatar
  • 916
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 ...
Sabarish Senthilnathan's user avatar
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 ...
Bart Koopman's user avatar
  • 29.6k
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 "...
Mohammed Ali's user avatar
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....
user2271's user avatar
2 votes
0 answers
108 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 ...
VijayaNaga's user avatar
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 ...
Yash's user avatar
  • 916
7 votes
2 answers
260 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) {...
Mukesh Kumar's user avatar
  • 4,074
1 vote
1 answer
109 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 ...
Shubh's user avatar
  • 97
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 ...
Shubh's user avatar
  • 97
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; ...
Manas.p's user avatar
  • 1,034
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 ...
SDLBeginner's user avatar
1 vote
1 answer
127 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 ...
user avatar
4 votes
2 answers
169 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 ...
Yash's user avatar
  • 916
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 ...
Yash's user avatar
  • 916
6 votes
1 answer
174 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 ...
Marlowe Antonius's user avatar
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 ...
Yash's user avatar
  • 916
1 vote
3 answers
103 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 ...
Yash's user avatar
  • 916
0 votes
3 answers
251 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 ...
Hiren Kaku's user avatar
  • 3,728
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 ...
Hiren Kaku's user avatar
  • 3,728
2 votes
1 answer
111 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....
Jaison Prabhu Doss's user avatar
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/...
k951's user avatar
  • 51
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 ...
k951's user avatar
  • 51
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 ...
Stefan Klasnic's user avatar
3 votes
1 answer
110 views

Error while creating page on component save and close with multiple user at a time

I am getting an error while creating page on component save and close with multiple user at a time. Below error i am getting ‘A database error occurred while executing Stored Procedure “...
user36299's user avatar
  • 543
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 ...
user36299's user avatar
  • 543
6 votes
2 answers
613 views

How to access the nested embedded mutlivalue schema fields in C#

I have three Schema X is content schema , Y is Embedded schema , Z is also Embedded schema. schema z is embedded within schema Y i.e also embedded schema Schema X have field called Heading Schema Y ...
k951's user avatar
  • 85
2 votes
2 answers
173 views

Get users from Directory Service Group using Tom.net

We have a requirement in which we have to maintain all users under AD directory instead of Tridion and SDL tridion is integrated with Ad through LDAP, that means the user groups which we are going to ...
Nash's user avatar
  • 2,193
-1 votes
2 answers
501 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 ...
vids's user avatar
  • 135
-4 votes
2 answers
785 views

how get the current page URL in Razor Template and TOM .Net?

I want to get current page url in my razor code.how to retrieve that?
User 45's user avatar
  • 119
3 votes
3 answers
428 views

Get Components based on specific schema in TBB returns all components

I am trying to get the Components based on a specific Schema in my TBB. But every time it is returning all the Components created under Building Blocks. I am putting my code below. Any help will be ...
Ken's user avatar
  • 53
2 votes
1 answer
83 views

Failure on component approval status check

Has anyone else had any issues when trying to check the approval status of a component? I am using the code below, to check if a component meets the minimum approval status, before performing some ...
Matt Hill's user avatar
  • 677