Page 1 of 1

CustomContent: menu items only for logged in users

Posted: Thu Sep 28, 2006 8:34 pm
by skypanther
I've searched and can't find the answer...is it possible to have menu items that show up to only logged in users? I'm using FrontEndUsers and CustomContent, of course.

I expect I have to modify my menu template somehow to accomplish this...right?

Tim

Re: CustomContent: menu items only for logged in users

Posted: Fri Sep 29, 2006 5:59 pm
by tsw
two options, either modify your menutemplate and wrap each item with customcontent markup (might be very slow) or create two menus and wrap the other one with customcontent specific tags

hope this helps

Re: CustomContent: menu items only for logged in users

Posted: Thu Nov 30, 2006 6:49 pm
by bslorence
I tried something totally different that involved the "Items" parameter to the {menu} tag, but it doesn't work so far because when I use "items", the menu hierarchy is overriden.

Re: CustomContent: menu items only for logged in users

Posted: Sun Apr 08, 2007 3:33 am
by richbothe
I have a site that only shows the menu once logged in..  I put this code in my menu template just above the tag:

{cms_module module=CustomContent}
{if isset($customcontent_loggedin) && $customcontent_loggedin > 0 }
{if $count > 0}


Don't forget to add a closing "{/if}" at the end of the template.

I then put this code into my layout template:

{cms_module module=CustomContent}
        {if isset($customcontent_loggedin) && $customcontent_loggedin > 0 }
        {content}
        {else}
        Place alternate message here!
        Blah blah blah...
        {/if}

Re: CustomContent: menu items only for logged in users

Posted: Sun Jun 03, 2007 1:23 pm
by derAuge
richbothe wrote: I have a site that only shows the menu once logged in..  I put this code in my menu template just above the tag:

{cms_module module=CustomContent}
{if isset($customcontent_loggedin) && $customcontent_loggedin > 0 }
{if $count > 0}


Don't forget to add a closing "{/if}" at the end of the template.

I then put this code into my layout template:

{cms_module module=CustomContent}
         {if isset($customcontent_loggedin) && $customcontent_loggedin > 0 }
         {content}
         {else}
         Place alternate message here!
         Blah blah blah...
         {/if}
Hello
i search for the same Problem.
I dont find in my menu template
I have the standard Install from CMSms 1.0.6
Can you tell me some more Details?

Thanks