[SOLVED] Can you call smarty code in the Pages content area?
Posted: Wed Oct 10, 2012 9:40 pm
Hello.
I'm wondering if it's possible to add smarty code into the page content WYSIWYG HTML editor.
To clarify, here is an example:
I want to call this code in the Pages content area. I have switched HTML view.
I also tried putting the literal code to surround just the smarty code. I also tried code.
It doesn't work at all now and calls an error page when I reload the page.
At one point it worked, but then I went into change some things in the editor and it didn't work at all after that...
Also, when I press: "Apply", it removes the literal commands.
Thank you!
I'm wondering if it's possible to add smarty code into the page content WYSIWYG HTML editor.
To clarify, here is an example:
I want to call this code in the Pages content area. I have switched HTML view.
Code: Select all
<literal><div id="disquscomments">
{capture name=xxx assign=sid}news_{$entry->id}{/capture}{disqus comments=$sid}
</div></literal>
Code: Select all
{literal}
It doesn't work at all now and calls an error page when I reload the page.
At one point it worked, but then I went into change some things in the editor and it didn't work at all after that...
Also, when I press: "Apply", it removes the literal commands.
Thank you!