2

Is it possible, to get a list of Components which are getting published dynamically using the SDL Tridion Core Service (or getting a list of Component Templates which can be published dynamically).

When using GetListXML I have been able to get a list of all Component Templates, but in the XML I can't see if they are "dynamic". The XML node for a template looks like this:

<tcm:Item ID="tcm:80-413-32" Title="Sample Compound Component Template" Type="32"
     Modified="2008-08-22T00:52:33" FromPub="01 Global Parent" IsNew="false" 
     Icon="T32L0P0S4" SubType="4" IsPublished="false" Lock="0" IsShared="true" 
     IsLocalized="false" Trustee="tcm:0-11-65552" /> 

1 Answer 1

7

Yes, it is possible.

As per the Core Service API Reference Guide available in the online documentation (requires login), use ComponentTemplateData.IsRepositoryPublishable Property, which gets or sets whether the Component Template renders "dynamic" Component Presentations."

4
  • Thanks Nickoli, But my issue was that i want to get all the dynamic component templates in the CMS for a publication. Using the above approach , i will have to get all the component templates and then check for individual templates .Is there a way using GetListXML where i can get all the component templates in xml and then filter them using an attribute.The XML node that i got for component template doesnot contain any attribute related to dynamic component. Jun 5, 2013 at 2:59
  • The xml node for template <tcm:Item ID="tcm:80-413-32" Title="Sample Compound Component Template" Type="32" Modified="2008-08-22T00:52:33" FromPub="01 Global Parent" IsNew="false" Icon="T32L0P0S4" SubType="4" IsPublished="false" Lock="0" IsShared="true" IsLocalized="false" Trustee="tcm:0-11-65552" /> Jun 5, 2013 at 3:00
  • 1
    I don't believe that you can do it all in one call. You'll need to get all CTs and filter them out. Jun 5, 2013 at 3:41
  • The performance impact here is not expected to be severe because the amount of CTs in the system should not ampount in a large number of loop iterations. Jun 5, 2013 at 3:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.