Friday 16 July 2004 1:52:47 pm
Hi all, I have a dynamic menu system, using a switch to see what section id the user's on and then pulling the appropriate menu include file. This works well within the site, after logging in. But I'm noticing that when I log out, the section id from the last page I was on carries over to the login page, so the last menu shows up again on the login page, instead of the login page's menu (which correlates to the default case in the switch). Code is below. Any ideas how I can get the section ID to stop carrying over, or else a workaround? {let iamhere=$DesignKeys:used.section}
{switch match=$iamhere}
{case match=10}
{include uri="design:main_rightnav.tpl"}
{/case}
{case match=19}
{include uri="design:company_rightnav.tpl"}
{/case}
{case}
{include uri="design:login_page_rightnav.tpl"}
{/case}
{/switch} {/let}
|