How to simply write "{exampletext}"?

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.
Locked
3dc

How to simply write "{exampletext}"?

Post by 3dc »

Hi all,

i got a real problem on creating pages.
I need to write something like
"Welcome at the {example}-homepage" on a page.

{example} is the name of the community im creating the pages for, so its impossible to write it in another way.

So i'm asking you how to enter it so that i can use this word.

Error message is -for example-
string(121) "Smarty error: [in content:content_en line 1]: syntax error: unrecognized tag 'example' (Smarty_Compiler.class.php, line 583)" welcomes you!
CMSms shouldnt recognize it as a tag, because there is no closing {/example}.
Maybe I found a bug?!

Please help me, CMSMS is great, but i cant use it if i cant write {example}

Thank you, greetz - ~3DC~
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: How to simply write "{exampletext}"?

Post by calguy1000 »

smarty uses { and } to delimit tags, if you want to use them in text you have to surround them with {literal} and {/literal} tags.

i.e:  {literal}this is some text with { and } characters in it{/literal}
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
3dc

Re: How to simply write "{exampletext}"?

Post by 3dc »

thank you cal, i found a small workaround(?)

I created a user defined tag "example" which has the content
echo "{example}";

now it will be displayed correctly and i can use it on the pages... this was easy :)

Thx for the literal-tag-example, i think i'll need it some time.

Greetz - ~3DC~
Locked

Return to “CMSMS Core”