(RESOLVED)Logged User Menu Access Setup Help......

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
rsiglin

(RESOLVED)Logged User Menu Access Setup Help......

Post by rsiglin »

I followed the Visual Tutorials for setting up the FrontEndUser modules but when I get to the point where you exclude the menu selection based on menu prefix (see code below), I just can't get it to hide the menu selection when not logged on.  The code on the Project Page does detect logged in users and displays the appropriate messages.  Any suggestions would be helpfull.

Menu TItle & page name is "Project Page"

Templae is code: (Left simple navigation + 1 column )

{if $ccuser->loggedin()}       
     {menu template='simple_navigation.tpl' collapse='1'}       
{else}
     {menu template='simple_navigation.tpl' collapse='1' excludeprefix='Project'}
{/if}

my hosting service is running the following configuration:

Operating system Linux Kernel version 2.6.18-8.1.14.el5 Machine Type i686
Apache version 1.3.39 (Unix)
PERL version 5.8.8
PHP version 5.2.4
MySQL version 5.0.27-standard
cPanel Build 11.11.0-STABLE 16999
Theme cPanel X v2.6.0 

============================================
Resolution/Understanding:
Learned two things:
1.) the excludeprefix='project_' is looking for the page alias that you enter from the content edit OPTIONS tab.
2.) probably would help to uncheck the "Cachable" option on that same options screen.
============================================
Last edited by rsiglin on Wed Nov 21, 2007 4:21 pm, edited 1 time in total.
Post Reply

Return to “Developers Discussion”