Hi All, I have the following transformation
{% transformationToRender = (Cache(Documents[NodeAliasPath].Parent.LightBoxLayout, 5, true, "Parent|" + NodeAliasPath, GetCacheDependency("nodes|<site name>|<page type code name>|all")) ? "CMS.ImageDescription.LightBoxImageDescription" : "CMS.ImageDescription.NestedImageDescription2Col"); %} {% Object.ApplyTransformation(transformationToRender, "ContentBefore", "ContentAfter") #%}
When the transformation is rendered to screen it spits out anything in strings ""
i.e.
ContentBefore ContentAfter and the result of the if statement as well as outputting the expected transformation.
Is there some kind of special escaping required to make this work without outputting the string literals?
Hi Tom, if you add return; then this will prevent the string from being outputted. Cheers!
Have you checked if transformationToRender contains value you need?
Are CMS.ImageDescription.LightBoxImageDescription and CMS.ImageDescription.NestedImageDescription2Col of Text/XML type?
Please, sign in to be able to submit a new answer.