All,

I have been looking at simplifying my templates recently, in order to
attempt to streamline our publish.  It has been recommended that we
take out the render tags from our pre-execute code, however I am
struggling to find an alternative option.

We get our data out of Red Dot by adding it to c# objects in pre-
execute code blocks, however the text editor fields do not play nice
with c# strings, so we used the Escape:HtmlEncode render tag to get
round this as it returns text that we can place in a string.

I have looked at the htmlConvertTable as an option, but this happens
too late in the page life cycle, so would be applied to the field
after our pre-execute code.  Does anyone have any suggestions?

extract from one of our templates from within a pre-execute block
blog.Description = @"<%!!
Escape:HtmlEncode(Context:CurrentPage.Elements.GetElement(String:txt_BlogText).Value)
 !!
%>";


Rich

-- 
You received this message because you are subscribed to the Google Groups 
"RedDot CMS Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/reddot-cms-users?hl=en.

Reply via email to