noob question about {toto}...

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
virtualgadjo
New Member
New Member
Posts: 7
Joined: Sat Nov 01, 2008 10:48 am

noob question about {toto}...

Post by virtualgadjo »

Hi,

i'm new to cmsms and currently, as a test, rebuilding my personnal website with it, must say, a real pleasure !

i've got a simple silly question. Today, wanting to test if i could insert tags in a page content with tintMCE, i was glad to see that yes, something like

some text
{my_tag}
some text

works great, and i feel that fantastic as it is a great and easy way to have complex content in a page, but, there is a but, now, suppose one of my clients editors (actually i'm playing with cmsms to stop writing a new cms on my own for each new website i've got to work on... :)) happens to write {toto} in the content for a strange reason we couldn't forecast ? of course, i've tested that and it threw a smarty syntax error.

So the question is, is there a known workaround except from teaching my clients how to use {literal} if ever they wanted to play with curly braces or to wrap the editable content with {literal} myself (in the templates or directly in the prepared content for more complex ones) ?

thanks for any lightful idea about that :)

little edition: a few tests (and so many things achieved in half a day with cmsms, i almost can't beleive how easy it is...) later, my idea consisting in wrapping the {content} tag with the literal one is of course a bad one as the page will display... {content}, normal ! Then i'm still in front of the same problem, what if a user (editor) writes {toto} (or something a bit more clever:)) within curly brackets in the content editor ? is the only workaround to teach them literal (not very found of relying on client memory about that kind of things...) ?

thanks again for any suggestion

have swing
Last edited by virtualgadjo on Sun Nov 02, 2008 6:49 pm, edited 1 time in total.
Bigge

Re: noob question about {toto}...

Post by Bigge »

{literal}  is not the only way! I found that if I use

Code: Select all

{
for { and

Code: Select all

}
for } in html-mode the nicely display as normal html and is ignored by smarty
Post Reply

Return to “CMSMS Core”