Please help with smarty tag usage [SOLVED]
Posted: Fri Jul 31, 2009 3:29 am
I'm slowly learning my way around cmsms 
Smarty tags is what I am working on now... where can I use them?
Right now, I want to make a link on a page available just to logged on members.
I went to content/pages/thepage, and in the content wysiwyg editor, I put:
{if $customcontent_loggedin > 0}Download and print the lesson plan here. {else}Students: please log in to print lesson plan.
{/if}
But it breaks the page: string(121) "Smarty error: [in content:content_en line 5]: syntax error: unidentified token ';' (Smarty_Compiler.class.php, line 1407)"
Do smarty tags not work directly in the content section like that? Do they only work in templates, that's where I used them before, but I thought it would go here on the single page level, no?
Thanks for any help, Chris
(1.5.4, with feu and customContent installed)
Smarty tags is what I am working on now... where can I use them?
Right now, I want to make a link on a page available just to logged on members.
I went to content/pages/thepage, and in the content wysiwyg editor, I put:
{if $customcontent_loggedin > 0}Download and print the lesson plan here. {else}Students: please log in to print lesson plan.
{/if}
But it breaks the page: string(121) "Smarty error: [in content:content_en line 5]: syntax error: unidentified token ';' (Smarty_Compiler.class.php, line 1407)"
Do smarty tags not work directly in the content section like that? Do they only work in templates, that's where I used them before, but I thought it would go here on the single page level, no?
Thanks for any help, Chris
(1.5.4, with feu and customContent installed)