Dynamic menu for Frontend Users

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
dernier_recours

Dynamic menu for Frontend Users

Post 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?
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Dynamic menu for Frontend Users

Post 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.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
dernier_recours

Re: Dynamic menu for Frontend Users

Post by dernier_recours »

It works great, thanks!
;D
promy
Forum Members
Forum Members
Posts: 12
Joined: Mon Jul 10, 2006 8:11 am

Re: Dynamic menu for Frontend Users

Post 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)
Last edited by promy on Sun Aug 27, 2006 8:09 pm, edited 1 time in total.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Dynamic menu for Frontend Users

Post 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.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
zeld66

Re: Dynamic menu for Frontend Users

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

Return to “CMSMS Core”