XF 2.1 Rendering data from custom template to popup modal?

BoostN

Well-known member
Hello, I don't really even know how to word the question rather than post a few screenshots and hopefully someone can correct the title if necessary.

I'm using the tag <xf:codeeditorrow> inside a custom template to allow me to hopefully render data as you would any XF template, but it doesn't render in that value, rather it prints it.

Example (source):
template1.JPG

template2.JPG

I'm basically wanting to output a html file that renders data when the user hits preview.. If I put raw HTML in that field it works fine:

template4.JPG


It's likely I'm approaching this very wrong, but looking for any thoughts and/or help around this.
 
<xf:codeeditorrow> just displays the input in a CodeMirror instance, it has no impact on whether the input will be rendered using the template system. Custom field display templates use simple string replacements and aren't run through the template system.
 
Top Bottom