Problems detecting when we are doing CMS Preview vs Dynamic Preview in 2012 UI/XM
问题 I have template code (2011 SP1) which detects if a CMS Preview was being used by checking engine.RenderMode (which would be PreviewDynamic ). This would then ensure that stuff that would usually be added by the app server for the published pages (like CSS, JS, navigation elements etc.) is injected to the rendered output so the preview looks nice in the CMS. The Tridion 2012 UI/XM creates temporary files for dynamic preview, and it turns out that in Publishing these files, the render mode is