Documentation > CMS Template API Library > IPublishing
CrownPeak.CMSAPI.IPublishing
If a context implements this, it means that the template MAY render during publishing and this would contain information that is relevant to publishing including information needed to render live links.
Name | Description | Type |
---|---|---|
IsGeneratingPublishLinks | A read only property that tells whether asset.GetLink() will return a live link or a preview link. The rules are different depending on the context that you are in. NOTE: Does not apply to Util.ReplaceAttachments() or UploadedFile.GetLink() those always return a live link if package info is available. |
Property |
IsPublishing | Are we publishing right now? |
Property |
LayoutName | Name of the layout file such as output.aspx or xml_output.aspx. |
Property |
PublishingLoopNumber | The current publishing loop number. Usually the same as page number, but it always starts at 1. Goes hand-in-hand with "PublishAgain". Use this to see which iteration you are on if you are using PublishAgain to continue publishing. |
Property |
PublishingPackage | Contains information about the current publishing package while publishing |
Property |
PublishingStatus | The status that corresponds to the current publishing destination. |
Property |
RenderPublishLinks | Set this to true, if you want generated links to be publish links during preview. |
Property |