Page 1 of 1
simple navigation
Posted: Fri Mar 10, 2006 4:36 pm
by pro_01
I'd like to do something very simple in static sites and so hard to achieve in dynamic sites. I'd just like active navigation option marked to stand out of the rest. Since I am usually working on corporate sites where look is important, I'd ideally like to have graphical navigation. I can probably remove the default navigation and add a blob for each navigation selection in both active and inactive state, but would that be wise and flexible enough? Especially having in mind that I'd need those sites localized in two or more languages. The Ell menu seems appropriate except for the fact it has an L-type structure and I need just a regular. Any other suggestions either how to mark the active navigation section or how to use graphic buttons instead of the standart text based nav?
Re: simple navigation
Posted: Fri Mar 10, 2006 5:53 pm
by Russ
Not sure what you are asking here
pro_01? If it is to just show the active menu link (the page you are on) as something different to the other menu links then you can use CSS, either to just change the color or link or some sort of image or all three

Is this what you are after? Incidently, the Ellnav menu can be a single level menu as well.
Hope this helps
Russ
Re: simple navigation
Posted: Tue Mar 21, 2006 6:36 pm
by Dan
I placed the below code into a user defined tag, and then referenced it in my template {the_name_of_my_userdefinedtag}. what it does is take the "name" of a page and determines what HTML gets writen in order to control images, nav on states, etc. once you have the name of the page, the if, elseif and else statement can control enything in the template. it saved me from having 10 versions of the nav (I needed an on state when the user was on a particular page, and to insert some javascript on the homepage only). Being able to do this saved me a ton of time.
-----------------------------------------------------------
global $gCms;
$thispage = '';
$thispage = $gCms->variables['page_name'];
if ($thispage == the_name_of_one_of_your_pages) echo "something_you'd_like_written_to_this_page";
elseif ($thispage == the_name_of_another_one_of_your_pages) echo "something_else_you'd_like_written_to_this_page";
else echo "something_you'd_like_written_as_your_default";
Re: simple navigation
Posted: Mon Apr 03, 2006 3:39 pm
by pro_001
Dan, I am not sure I got you right. I created the custom tag and added it to my template, but I don't seem to quite get it. I assume the idea here is to put in the elseif as many times as many pages I have for the site, right? But what the final else stand for? Can you show me how it works for you? I mean if for example I have 5 site sections, one of which has 4 subsections and the last button on the top menu should change to different language version, how should I use this thing to do it right?
It looks like this:
Home
Products
Product 1
Product 2
Product 3
Product 4
Services
Contacts
Language switch
and I should use graphic buttons in order to make it look cool. Thanks.
Re: simple navigation
Posted: Fri Apr 07, 2006 4:32 am
by Dr.CSS
Image Map Menu
works IE & Firefox
mark
Re: simple navigation
Posted: Mon Apr 10, 2006 8:21 am
by pro_01
i'm not a religious person, but god bless you, maksbud
