Page 1 of 1

Dynamic menu for Frontend Users

Posted: Sat Mar 18, 2006 11:23 pm
by dernier_recours
I'm trying to make a simple setup with frontend users and reserved sections. To give an access to those sections to frontend users, I could create static links that appears only to them, using FrontendUse, and CustomContent. However, the best practice would be to create a dynamic menu including items that will appear only to login users. Is it possible without coding?

Re: Dynamic menu for Frontend Users

Posted: Sun Mar 19, 2006 12:17 am
by calguy1000
I think you could do this:

a.  Create a section header, and mark it as "not shown in menu"
b.  Create all of your private pages, as children of this section header
c.  Create a {cms_module module=menumanager...} tag, inside of the etc, tags in your template, to only show the children of the section header shown in step a.

Re: Dynamic menu for Frontend Users

Posted: Sun Mar 19, 2006 3:19 am
by dernier_recours
It works great, thanks!
;D

Re: Dynamic menu for Frontend Users

Posted: Sun Aug 27, 2006 8:06 pm
by promy
I kind of want a similar thing, but a little bit different...

I want to only show certain 'child' menu items when a user is logged in using CustomContent

What i mean is:
-no user logged in: see only parent (when clicked on: show paged with login form)
    eg: RTCLeden
   
-when logged in: see parent and child (or multiple childrend):
   eg: RTCLeden
           - Doc's
           - Pictures
           - whatever

Next to this 'RTCLeden', there are multiple parent items (site: www.avondfeest.be/index.php )
I don't quite understand how to use the menumanager tag... (menumanager shows an empty list in admin pages)

Re: Dynamic menu for Frontend Users

Posted: Sun Aug 27, 2006 9:42 pm
by calguy1000
I haven't tried this yet, but you should be able to:

a) put a {cms_module module=FrontEndUsers mode=silent} tag somewhere above the menumanager call

then

b) create a new menumanager template, and using smarty magic, modify the template such that sub-levels don't get displayed if the user is not logged in.

Re: Dynamic menu for Frontend Users

Posted: Thu Aug 31, 2006 1:26 am
by zeld66
Dear all

I have a similar situation.  I have my restricted pages under a Section header (not showing in menu) and wish for the members pages to only show once logged in either with a New menu eg css_horiz.  My main menu I am using is css_vert.  I have tried placing a new and separate menu eg cssmenu - horiz within the custom content tags but the new menu is not showing up.

However I like the idea of the css-vert menu that I am currently using to show the restricted pages once logged in as above.  I have tried this as well but don't understand what  code I need to put in to get the "child" in the menu, under the section header to show once logged in.

The public areas also have main and child areas.  Would this affect this as well or just those pages under the section header.  I apologise for all the questions but I am really struggling to get my head around the menu manager....I have read the docmentation in the handbook however I am more confused than ever being a novice at this. 


eg 1.  Members Section Header
          1.1  info (Child for Members Only area)
          1.2 news (child for members only area)
   2.  About us  (public area)
          2.1 personal (public area)
         2.2. business
   3.  testimonials (public area)


This is the code below currently using for a separate css_horiz menu within the custom content area (I must be missing something cause this dosen't work either)


         {title}
{cms_module module=CustomContent}
   
       

         
         
         {cms_module module='menumanager' template='cssmenu-accessible.tpl' }
         
               {content}
     

You don't have authorization to see this content. Please Login


     
I trust the above makes sense and greatly appreciate any assistance given.


Regards
Zeld66