WebsiteBaker Community Forum

WebsiteBaker Support (2.8.x) => Templates, Menus & Design => Topic started by: RedGnomos on January 16, 2009, 12:21:48 AM

Title: Menu
Post by: RedGnomos on January 16, 2009, 12:21:48 AM
I don't mean to repost however I had posted the question below earlier and for some reason it was moved to "Off Topic".

I have a template that has approximately 7 images at the very top that serve as menu links. What I would like to be able to do is for example if I create a page called "About" and the user clicks on the page, the image displayed on the "About" page differs to that appearing on every other page. Essentially the images for the pages that they link to change when the person is viewing that particular page hence indicating the current page that they are on. How do I do that?
Title: Re: Menu
Post by: marathoner on January 16, 2009, 04:02:25 AM
This sounds like a 'hard-coded' menu in your template as opposed to a dynamic menu (such as a call to show_menu2).

If it is hard-coded and the only difference between pages is that the current page will not display the menu link (at least I think that's what you mean) then why not just use a little PHP and if the page_id equals the current page you are on then don't display the image and link info.