3

What property on a TOM.NET Tridion.ContentManager.CommunicationManagement.ComponentTemplate shows if the template is a dynamic template or a static one? In the CME GUI this is set in the Component Presentations based on this Component Template will be: field.

enter image description here

1 Answer 1

7

It is in ComponentTemplate.IsRepositoryPublishable. Once you know the name it makes sense. From the API doc:

public bool IsRepositoryPublishable { get; set; }

A "dynamic" Component Presentation is published separately instead of being embedded on a Page.

The checkbox Allow on Page Using Dynamic Assembly is in ComponentTemplate.AllowOnPage, that one is a bit easier to find.

1

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.