CustomContent: menu items only for logged in users

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
skypanther

CustomContent: menu items only for logged in users

Post 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
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm
Location: Finland

Re: CustomContent: menu items only for logged in users

Post 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
bslorence

Re: CustomContent: menu items only for logged in users

Post 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.
User avatar
richbothe
Forum Members
Forum Members
Posts: 95
Joined: Tue Aug 15, 2006 5:34 pm
Location: Minnesota, USA

Re: CustomContent: menu items only for logged in users

Post 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}
User avatar
derAuge
Forum Members
Forum Members
Posts: 117
Joined: Thu Mar 22, 2007 3:49 pm
Location: Germany / Münsterland

Re: CustomContent: menu items only for logged in users

Post 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
Locked

Return to “Modules/Add-Ons”