Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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).

6
votes
1answer
59 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 ...
4
votes
1answer
56 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
2answers
53 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 ...
5
votes
1answer
133 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 ...
4
votes
1answer
63 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 ...
9
votes
2answers
145 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
1answer
78 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
2answers
70 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
1answer
75 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# ...
4
votes
2answers
119 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 ...
3
votes
0answers
33 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); ...
4
votes
2answers
74 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
1answer
112 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 ...
2
votes
2answers
71 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 "...
1
vote
1answer
51 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....
2
votes
0answers
84 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 ...
2
votes
1answer
65 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 ...
8
votes
2answers
157 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
1answer
79 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 ...
1
vote
1answer
64 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 ...
4
votes
1answer
192 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
1answer
90 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
1answer
85 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
2answers
148 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
0answers
60 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 ...
7
votes
1answer
147 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 ...
4
votes
2answers
148 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 ...
1
vote
3answers
96 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
3answers
162 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
1answer
91 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
1answer
88 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....
1
vote
1answer
143 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/...
4
votes
2answers
216 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
1answer
88 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 ...
3
votes
1answer
87 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 “...
7
votes
3answers
184 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 ...
6
votes
2answers
426 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 ...
2
votes
2answers
138 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 ...
-1
votes
2answers
374 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 ...
-4
votes
2answers
616 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?
3
votes
3answers
333 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 ...
2
votes
1answer
74 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 ...
5
votes
2answers
197 views

Find components on CM side

I need to find components on CM side that satisfy the following conditions: From target publication Based on a target schema Tagged with target keyword This should be done using tom.net Currently ...
3
votes
3answers
372 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/...
0
votes
3answers
238 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 ...
3
votes
1answer
101 views

Get Local Taxonomies using Repository.GetTaxonomiesOwl()

I am building a category/Keyword hierarchy xml file on publishing a page. And I don't want to loop through the categories and keywords to avoid performance issue. So, I am using Repository....
5
votes
2answers
102 views

Getting the user who clicked publish in tom.net during publish

I need to log the user who clicked publish on an item. I can't use an event system(technical restrictions), so I thought I would create a TBB which would simply write to a txt file during publishing. ...
2
votes
2answers
98 views

xslt custom function to get component item xml performance is not good as default document function in XSLT

I am working on templating using XSLT Mediator and wrote custom function to get the ItemXML of Component because leagcy document function not provide category keyword info in generated xml. public ...
4
votes
2answers
121 views

Error when render VBScript CT from a .NET PT

We're getting the error below when rendering a legacy VBScript component template (presentation) from a .NET page template. The .NET code to do the rendering is straightforward: var sb = new ...
8
votes
2answers
342 views

What kind of API should I use to create components in Tridion 2009 using an ASP.NET project?

I'm looking for information on how to create and publish dynamically components in Tridion 2009. What kind of API do I need and are there any tutorials around to get started with it?