Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
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
266 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
104 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
162 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
247 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
-1 votes
2 answers
509 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
797 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
430 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
5 votes
2 answers
210 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 ...
user3760419's user avatar
  • 1,079
0 votes
3 answers
325 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 ...
Arnau's user avatar
  • 69
2 votes
1 answer
200 views

Get the hierarchical Category and keywords in TOM.NET

I have Location category and under this category: region->countries->cities.I want to get the hierarchical category data in XML in TOM.NET by passing parent's categoryID. I just want basic info e.g. ...
Vivek Chauhan's user avatar
6 votes
2 answers
244 views

Engine.PublishingContext: RenderContext.ContextItem , ResolvedItem and RenderedItem differences

What is the difference between the 2: Engine.PublishingContext.RenderContext.ContextItem and Engine.PublishingContext.ResolvedItem ? Seems Engine.PublishingContext.ResolvedItem is usually used to get ...
R.C's user avatar
  • 926
2 votes
2 answers
221 views

Get the component resolved in page using core service api or tom.net api

I am looking to get the component resolved in page using core service.. We can find item used in how many places by this UsedItemsFilterData usedItemsFilterData = new UsedItemsFilterData(); return ...
Pankaj786's user avatar
  • 467
0 votes
2 answers
982 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 ...
User344's user avatar
  • 731
5 votes
3 answers
375 views

Tridion Mock Objects

I like to know if there is a generic mock object or community project that will provide me the ability to unit test my TOM API C# code following a test driven development approach. I'm looking for ...
user1096's user avatar
5 votes
6 answers
1k views

How to retrieve parent component object from a localized component using Tom.Net API?

I have a localized Component in one of the child Publications. I would like to know the parent Component from which the current Component has been localized. This code will be executed in an event ...
User344's user avatar
  • 731
11 votes
1 answer
206 views

How to check a TCM URI is valid without raising an exception?

Is there is some way in the TOM.NET API to check if an item exists (using TCM URI or WebDAV URL) without raising an exception?
Will Price's user avatar
  • 16.4k