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.
Conditional codes are not accepting in template
-
- New Member
- Posts: 4
- Joined: Sun Jan 23, 2011 3:03 pm
Re: Conditional codes are not accepting in template
You do have the Custom Content module installed, that is correct, you could try...
{if $ccuser->loggedin()}{else}{redirect_page page='login'}{/if}
{if $ccuser->loggedin()}{else}{redirect_page page='login'}{/if}