I need a bit of help formatting a conditional statement in a template. This query refers to FrontEndUsers and CustomContent, but the actual thing I need help with is about smarty and/or CMSMS.
Basically my site is composed of 5 or 6 sections, which I've set up nicely with tabs using a modified NCleanBlue template. Each section/tab will have its own slightly modified template for slightly different styling (eg. banner graphics, colours etc.).
One of the sections (lets call it 'Stuff') has a sub-section for registered users, which will display custom content once they've logged in via FrontEndUsers.
Now rather than have yet another seperate template just for this sub-section, I thought I could just put a smarty conditional statement in the template as follows:
Code: Select all
{if $page_alias == "stuffmembers"}
{if $ccuser->loggedin()}
{content}
{else}
<p>You need to be registered and signed in to see this content.</p>
{/if}
{else}
{content}
{/if}
Code: Select all
{if $page_alias == "stuffmembers-*"}
Can anybody be so kind as to suggest a way I can do this (probably very basic) thing, as I can't find any info elsewhere?
Many thanks,
Mark.