Page 1 of 1

Conditional codes are not accepting in template

Posted: Tue Sep 18, 2012 3:51 pm
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.

Re: Conditional codes are not accepting in template

Posted: Tue Sep 18, 2012 7:02 pm
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}