Page 1 of 1

How to simply write "{exampletext}"?

Posted: Fri Oct 20, 2006 9:02 pm
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~

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

Posted: Fri Oct 20, 2006 9:19 pm
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}

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

Posted: Fri Oct 20, 2006 10:05 pm
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~