I have a template code (2011 SP1) that determines if CMS preview was used by checking engine.RenderMode (which would be PreviewDynamic ). This would ensure that the material that is typically added by the application server for published pages (e.g. CSS, JS, navigation elements, etc.) is injected into the processed output, so the preview looks good in the CMS.
Tridion 2012 UI / XM creates temporary files for dynamic preview, and it turns out that when these files are published, the rendering mode is also PreviewDynamic , which creates a problem for me, as in a situation where the page is actually published, I do not want to enter things (the application server takes care of this with the .NET homepage in this case)
Considering the possible values ββfor RenderMode in the .NET API, we have Publish , PreviewStatic and PreviewDynamic .
So my questions are:
- How can I talk about the difference between CMS Preview and DYnamic Preview in a code template
- When (if at all) is a RenderMode
PreviewStatic ?
source share