Page 1 of 1

Images as menu links

Posted: Fri Oct 28, 2005 1:38 pm
by suffrinmick
Hi Everyone

Done my first site using CMS made simple - absolutely brilliant!

I'm using the vertical navigation bar. I wondered how you can change the navigation links to include a small (rollover) image just before the actual link text e.g.

Instead of :
link

you would have:
Imagelink


This will also lead onto a probable future question of how you would use rollover buttons instead of text links as well.

Many thanks
Suffrinmick

Re: Images as menu links

Posted: Sat Oct 29, 2005 10:16 am
by Ted
I think something more custom would have to be done.  It might be worth looking into the pimenu thing that's floating around.  Should be able to modify the output enough to get the rollovers you need.

Re: Images as menu links

Posted: Sat Oct 29, 2005 11:38 am
by Piratos
Pimenu creates dummy - variables to smarty if you are using parameter picture

example : picture=" images/%#%.gif"

Smarty hold variables as follow:

->p1  images/Homepage_a.gif
->p2  images/Homepage_b.gif
->p3  images/Homepage_c.gif

%#% expands to the menutext.

you must only create the grafics and use the variables in the smarty - template of your menusystem