Frontend Users

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
DavidG
Forum Members
Forum Members
Posts: 26
Joined: Wed Aug 20, 2008 10:02 am

Frontend Users

Post by DavidG »

Hi all,

I have a few requirements and not sure whats the best way to deal with them all :

- muliple users should be able to login and edit using LDAP
- these users should also be able to login to front-end and see hidden information

I have found the Ldap users module and also Frontend users module. It seems I need both of these.

Any suggestions ?  can this be done easily ?


also is there a "most popular pages" module that shows the pages hit the most ??

I'm not a developer and just want to use these modules with minimum modifiaction !

thanks
Last edited by DavidG on Mon Sep 29, 2008 1:25 pm, edited 1 time in total.
peterbus

Re: Frontend Users

Post by peterbus »

Hi,

To hide certain pages you also need the module CustomContent. Just install it, it needs no futher changing or whatever.

For al groups that are present IN FEU I made a new template (just a copy of the one you use as standard) with two additions:

Navigation
           {if $ccuser->loggedin() && $ccuser->memberof('Gasten')}       
           {menu template='crystalx_menu.tpl' collapse='1' start_page='gast-informatie'  show_root_siblings='1'}
           {else}
           {menu template='crystalx_menu.tpl' collapse='1'  excludeprefix='beheer,docenten,gasten,leerlingen,uitloggen'} 
           {/if}


and futher on in the template


       
           
                {title}
                {cms_module module=CustomContent}
                {if $ccuser->loggedin() && $ccuser->memberof('Gasten')}
                {content}
                {else}
                U bent niet gemachtigd deze pagina te bekijken
                {/if}

The first addition takes care of the menu that is shown to the people that are logged in. Only menbers of the group  "Gasten" can log in. If not a member,  the normal menu is shown except the pages as mentioned (page allas names like beheer, docenten ....).This is done by the "excludeprefix"


The second addition makes sure that non groupmembers can view the contents of a page, for example by copy/paste an URL in to the browser. If not a member the message "U bent niet gemachtigd deze pagina te bekijken" is shown.

So the frist set of rules only takes care of the menu that will be shown, the second set of rules takes care of the security.



In the standard template I put the following code. This is done to prevent logged in users to navigate outside their own section without a proper log out. Whatever they do they will always have their own specified menu in front of them. Only after log out they are able to visit the main pages and menu.

            Navigation
          {if $ccuser->loggedin() && $ccuser->memberof('Beheer')}     
          {menu template='crystalx_menu.tpl' collapse='1' start_page='gebruikersoverzicht'  show_root_siblings='1' excludeprefix='home,ekodiner,reservering,kookboek,inlog'}
            {elseif $ccuser->loggedin() && $ccuser->memberof('Gasten')}     
          {menu template='crystalx_menu.tpl' collapse='1' start_page='gast-informatie'  show_root_siblings='1' excludeprefix='home,ekodiner,reservering,kookboek,inlog'}         
          {elseif $ccuser->loggedin() && $ccuser->memberof('Docenten')}     
          {menu template='crystalx_menu.tpl' collapse='1' start_page='docent-informatie'  show_root_siblings='1' excludeprefix='home,ekodiner,reservering,kookboek,inlog'}
          {elseif $ccuser->loggedin() && $ccuser->memberof('Leerlingen')}     
          {menu template='crystalx_menu.tpl' collapse='1' start_page='leerling-informatie'  show_root_siblings='1' excludeprefix='home,ekodiner,reservering,kookboek,inlog'}
{else}
{menu template='crystalx_menu.tpl' collapse='1' excludeprefix='beheer,docenten,gasten,leerlingen,uitloggen'}

          {/if}
       
   



hope it's usefull to you

Good luck!
Last edited by peterbus on Thu Oct 09, 2008 9:38 am, edited 1 time in total.
Post Reply

Return to “Modules/Add-Ons”