Skip to main content
9 votes
Accepted

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

There are two things you can do. First If it is sufficient or preferable for you to get AddedItems during complete event They are available but not loaded. Use ITranslationJob.LoadState ...
Yuri Bondarchuk's user avatar
6 votes
Accepted

Razor templating in Xview framework

@Marlowe, glad to hear that you like XView :) I've created this quick video to show how you can use XView in combination with RazorEngine to develop Tridion TOM.NET templates with ViewModels, Razor ...
hoang's user avatar
  • 523
6 votes

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

Let me try to understand what you need to achieve. According to TOM.NET API documentation, GetListMultimediaTypes is used to retrieve all multimedia types defined in system (.jpg, .png, .doc....) So,...
Marko Milic's user avatar
  • 8,942
6 votes
Accepted

Reading Tridion Items During Event System Extension Initialization

Instantiating Session object in the constructor of ES doesn't work from version 8 and beyond. We had this issue when we did the upgrade from 2013 to 8.5. So what we did is moved it to all event ...
Marko Milic's user avatar
  • 8,942
5 votes

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

It looks like you are trying to save innerFields as Component content. But isn't componentFields actual content of Component? Also, please make notice that you are trying to do this in Event System. ...
Marko Milic's user avatar
  • 8,942
5 votes
Accepted

Error while publishing a component from Event System

For starters your subscribe to IdentifiableObject is a bit risky, since that will capture more than just the save event of a Component, it will trigger on a lot more items in the CM, like Pages, ...
Bart Koopman's user avatar
  • 29.6k
5 votes
Accepted

Set content in Multi-valued text field

You should use .Values property instead of .Value .Values property is always available if field is multi-value. You can have something like this: foreach (ItemField field in metadataFields) ...
Marko Milic's user avatar
  • 8,942
5 votes

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

Apparently when you pass a Publication object to a function that takes in an IdentifiableObject GetXXX(IdentifiableObject identifiableObject), the identifiableObject's XML will have less information ...
Sabarish Senthilnathan's user avatar
4 votes
Accepted

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

Without running the code, I think the problem is your initial for loop. If you look at the XML source of a Component with categories in the metadata (one of ours for example) : <Metadata xmlns="...
Dave Forber's user avatar
  • 1,441
4 votes
Accepted

UsingItemsFilter not filtering result for publication context

Since you seem to be interested in classified Components: did you consider using Keyword.GetClassifiedItems ?
Rick Pannekoek's user avatar
4 votes
Accepted

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

If all is well, the same logic can still be used; the new publishing franework uses Topology Manager Mappings instead of Publication Targets, but you will find that there is still a PublicationTarget ...
Rick Pannekoek's user avatar
4 votes
Accepted

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

I too wasn't able to update the embedded Component field using ItemFields class; however, I was able to update it by XML node manipulation. Something like this should definitely work: var xDocument =...
Sabarish Senthilnathan's user avatar
4 votes

Error on Publishing ECL Items

The error you are getting is a .NET error in the CopyTo() method, that tries to copy a closed stream. I'm wondering if it wouldn't be easier to use the IContentResult stream object directly inside ...
Harald Hoffelinck's user avatar
4 votes

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

A bundle is an OrganizationalItem just like a folder or a structure group. You can get the items in the bundle with the GetListItems() method. If you only want to get components, you can use a filter ...
Quirijn's user avatar
  • 6,787
3 votes

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

I've read somewhere (on multiple occasions) that when in TOM.NET you should never initiate the Session object on your own, rather you should reuse the existing one. For example in Templating this is ...
Atila Sos's user avatar
  • 6,290
3 votes

UsingItemsFilter not filtering result for publication context

Did you try InRepository. UsingItemsFilter = new UsingItemsFilter(pub.Session) { ItemTypes = new[] { ItemType.Component }, IncludedVersions = VersionCondition.OnlyLatestVersions, ...
Dylan .. Mark Saunders's user avatar
3 votes
Accepted

How to derive a Tridion Engine object?

Microsoft Fakes (formerly known as Moles) will allow you to instantiate your own Engine class, but as Rob says, it's a lot of effort for little gain. I once succeeded in this using Moles, but just ...
Dominic Cronin's user avatar
3 votes

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

As Robert points out, there is a compare option. To see this for the component view (where it's most useful) a simple path Select History of the item Select two versions from the displayed list ...
Dylan .. Mark Saunders's user avatar
3 votes
Accepted

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

After long investigation, I have found that it is not possible to differentiate them. The resolving is done pre-transaction-create. Also, there in the transaction object, there is no property saying ...
Marko Milic's user avatar
  • 8,942
2 votes

How to track the changes made on Page?

The SetPublishState event is only called after a successful transaction, reference If you use this event on transactioncommitted, then current publish would have already succeeded and the time from ...
Hiren Kaku's user avatar
  • 3,728
2 votes

How to track the changes made on Page?

Tridion does not store publish information other than the latest publish. You will have to write custom code to capture this information. We had the need to show publish info like who published, when, ...
Vipin Kothari's user avatar
2 votes

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

As Nuno mentioned in the comment, but I'll steal his points by making it an answer ;o). In Template code you can use the GetObject method directly from the Engine object available in a Template: ...
Bart Koopman's user avatar
  • 29.6k
2 votes
Accepted

Getting the root Parent Publication using Tom API

Thanks All. I got solution to my issue using the following approach: SystemManager manager = Session.SystemManager; BluePrintParentsFilter bluePrintParentFilter = new BluePrintParentsFilte(Session) {...
user3522010's user avatar
2 votes

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

There is also Product landing page which uses tom.net API to publish all the products component as json Assuming you are using a standard publish instruction in TOM.NET, you can ask the publisher to "...
Nuno Linhares's user avatar
  • 29.1k
2 votes

Slightly confused over dynamic version

But why would you want to retrieve such a version in the first place? What would be your use case? If an item is checked out, you can still read the item with its "versionless" uri and you will get it ...
Atila Sos's user avatar
  • 6,290
2 votes

PublishEngine.IsPublished() so slow

Are you running the recommended regular database maintenance on your databases? This could indeed help. https://community.sdl.com/product-groups/sdl-tridion-dx/tridion-sites/tridion-developer/b/...
Chris Morgan's user avatar
  • 7,327
2 votes

Retrieve component based on user comment and based on schema

To get the components based on schema, you can use the below code. If you have multiple schemas, you can loop and collect the results. UsingItemsFilterData filter = new UsingItemsFilterData(); ...
Saurabh Gangwar's user avatar
2 votes
Accepted

PublishTransaction save event not recording all publish states

We were able to narrow down the issue to the fact that not all publishing happens in a single server. The templating logs that normally gets logged in Event Viewer when a single page is published is ...
Sabarish Senthilnathan's user avatar
2 votes

PublishTransaction save event not recording all publish states

I think Raimond's comment is spot on, when creating an event handler, you have to be aware that this can be called by multiple threads and simply trying to write to a file without proper locking will ...
Bart Koopman's user avatar
  • 29.6k
2 votes

Generate Sitemap XML

Since, you are using DXA, I will say the approach of generating the sitemap might not makes sense (unless there are other fine prints which we are not aware about). The correct approach could be ...
Pankaj Gaur's user avatar
  • 15.9k

Only top scored, non community-wiki answers of a minimum length are eligible