All Questions
17 questions
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 ...
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;
...
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 ...
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/...
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 ...
-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 ...
-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?
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 ...
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 ...
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 ...
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. ...
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 ...
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 ...
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 ...
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 ...
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 ...
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?