[SOLVED] CustomContent, MenuManager, page aliases and user groups in combination
Posted: Thu Nov 20, 2008 12:36 am
Hi,
I have been using CustomContent and MenuManager in combination for a while, e.g.
Yesterday I found out how to change background images based on parent aliases - exciting!
Now I would like to combine these two insights and with 50 different user groups, I don't want to go excludeprefix or includeprefix for 49 group prefixes or do several nested 'if' statements.
My idea is to read the user group of the logged-in user and use that in place of the 'std_' and 'priv_' above, i.e. smarty inside smarty and then use includeprefix based on the user group.
Any ideas on how that should be done?
Thanks in advance
I have been using CustomContent and MenuManager in combination for a while, e.g.
Code: Select all
{if isset($customcontent_loggedin) && $customcontent_loggedin > 0}
{cms_module module='menumanager' template='fjs_horiz' number_of_levels='1' excludeprefix='std_'}
{else}
{cms_module module='menumanager' template='fjs_horiz' number_of_levels='1' excludeprefix='priv_'}
{/if}
Now I would like to combine these two insights and with 50 different user groups, I don't want to go excludeprefix or includeprefix for 49 group prefixes or do several nested 'if' statements.
My idea is to read the user group of the logged-in user and use that in place of the 'std_' and 'priv_' above, i.e. smarty inside smarty and then use includeprefix based on the user group.
Any ideas on how that should be done?
Thanks in advance