Conditional codes are not accepting in template

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
subbuindesign
New Member
New Member
Posts: 4
Joined: Sun Jan 23, 2011 3:03 pm

Conditional codes are not accepting in template

Post by subbuindesign »

I have to place "{if !$ccuser->loggedin()}{redirect_page page='login'}{/if}" code after body tag in template.

1) First I tried directly pasted after </__body> tag, then it is not accepted.
2) Second option I tried by "Global Content Block", even for this also same error I am getting.

Can anybody suggest me the solution, and I am using CMSMS 1.1.1 version.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Conditional codes are not accepting in template

Post by Dr.CSS »

You do have the Custom Content module installed, that is correct, you could try...

{if $ccuser->loggedin()}{else}{redirect_page page='login'}{/if}
Post Reply

Return to “CMSMS Core”