Jump to content

text field doesn't accept templates and html logic s?


Recommended Posts

Is there anyway to make text field to accept templates and logics ? 

for example i have a text field in my theme setting


in this field im using a Pages block key inside a <li> tag

the out put is only {block="articles"}  

it works fine if i use the block keys in html templates but not if it comes form a text field 


Help appreciated 



Link to comment
Share on other sites

  • 1 month later...

Text input fields do not process HTML logic. You would need to run the content through the theme system to do that (which means you'll need to write some sort of processing layer when the theme setting is saved or when it is used on the front end).

If you still want to go this route, which I don't really recommend (you're creating a lot of work for yourself IMO), look at how the email class handles email subjects - this is essentially creating and processing content through the template system at run time without actually using the template system itself to store the content.

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...