RC2 Help Please - Dynamic Header Menus »  Show posts from    to     

Icy Phoenix


Old Support Topics - RC2 Help Please - Dynamic Header Menus



AndyGpy [ Mon 06 Jul, 2009 21:33 ]
Post subject: RC2 Help Please - Dynamic Header Menus
Hi Guys,

Can someone help here, i want to have the menu at the top of the page just below the banner to change depending on what page ( or section ) of the site i am on.

EG while in forum it may read:-


Home * Section A * section B * etc


and in knowledge base read something like


Home * Places to visit * Things to see * etc


I am using RC2,

can anyone help me ?


Lopalong [ Tue 07 Jul, 2009 15:57 ]
Post subject: Re: RC2 Help Please - Dynamic Header Menus
You would need to make as many copies of this for the locations that you want to use them in, and change all the links and names for each "Location".

Code: [Hide] [Select]
<a href="{FULL_SITE_PATH}{U_PORTAL}">{L_HOME}</a>&nbsp;&nbsp;<img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />&nbsp;
<a href="{FULL_SITE_PATH}{U_INDEX}">{L_INDEX}</a>&nbsp;&nbsp;<img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />&nbsp;
<!-- BEGIN switch_upi2db_off -->
<a href="{FULL_SITE_PATH}{U_SEARCH_NEW}">{L_NEW2}</a>&nbsp;&nbsp;<img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />&nbsp;
<!-- END switch_upi2db_off -->
<!-- BEGIN switch_upi2db_on -->
<span style="vertical-align:top;">{L_POSTS}:&nbsp;</span><a href="{FULL_SITE_PATH}{U_SEARCH_NEW}">{L_NEW2}</a><span style="vertical-align:top;">&nbsp;•&nbsp;</span>{L_DISPLAY_U}<span style="vertical-align:top;">&nbsp;•&nbsp;</span>{L_DISPLAY_M}<span style="vertical-align:top;">&nbsp;•&nbsp;</span>{L_DISPLAY_P}&nbsp;&nbsp;<img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />&nbsp;
<!-- END switch_upi2db_on -->
<!-- IF S_LOGGED_IN -->
<a href="{FULL_SITE_PATH}{U_PROFILE}">{L_PROFILE}</a>&nbsp;&nbsp;<img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />&nbsp;
<!-- ENDIF -->
<!-- IF S_HEADER_DROPDOWN -->
<a href="{FULL_SITE_PATH}{U_SEARCH}" onmouseover="dropdownmenu(this,event,menu1,'250px')" onmouseout="delayhidemenu()">{L_SEARCH}</a>&nbsp;&nbsp;<img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />&nbsp;
<!-- ELSE -->
<a href="{FULL_SITE_PATH}{U_SEARCH}">{L_SEARCH}</a>&nbsp;&nbsp;<img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />&nbsp;
<!-- ENDIF -->
<a href="{FULL_SITE_PATH}{U_FAQ}">{L_FAQ}</a>&nbsp;&nbsp;<img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />&nbsp;
<!-- IF not S_LOGGED_IN -->
<a href="{FULL_SITE_PATH}{U_REGISTER}">{L_REGISTER}</a>&nbsp;&nbsp;<img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />&nbsp;
<!-- ENDIF -->
<a href="{FULL_SITE_PATH}{U_LOGIN_LOGOUT}">{L_LOGIN_LOGOUT2}</a>



Paste all of the "New" NAV links menus to the overall_header.tpl (One after the other, and before the default) and then give them all a .php "location" plus if and else if arguments to use specific Nav-Links Menus for various locations, and default back to the original for all other non-specific locations.

Actually it's quite easy once you know exactly what anchors you want, and create the Nav menus for the links go with each location first.

So, if you want five menus, you will need five .php arguments to separate them.

Best of luck!


AndyGpy [ Tue 07 Jul, 2009 22:35 ]
Post subject: Re: RC2 Help Please - Dynamic Header Menus
Just seen the jet flying past at 3000 miles per hour, soz lopalong you lost me.

Can you perhaps give a demo of a navlink , .php file and how they relate to each other ?

remember i am not a PHP wizz kid like you lol

regards


Lopalong [ Tue 07 Jul, 2009 23:52 ]
Post subject: Re: RC2 Help Please - Dynamic Header Menus
http://icyphoenix.com/viewtopic.php?p=37770#p37770




Powered by Icy Phoenix