Page 1 of 1

[Solved] Sidebar & images

Posted: Fri Aug 22, 2008 8:38 am
by tth
being new to cmsms, I was trying to set up my first project.... (which was nice & easy - I like cmsms...)

only issue: I want to place an image below the vertical menu. It is fine as long as I want to place a static image - I can do that simply by adding the coding within the section....

But I failled to do so when I tried to to choose the image depending on the menu item... (I've been searching through the forum entries ... and tried several things, but not really successful...)

Any simple advice available? Again I only want to add an image below the vertical (sub)menu - not cklickable, but depending on the menu level.

Thx
Thomas

Re: Sidebar & images

Posted: Fri Aug 22, 2008 8:46 am
by christiaans
What ways have you tried?

Because it sounds fairly easy to me; by using $page_alias.

For instance:

Code: Select all

<div id="menu_vert">
{menu}
<img src="images/{$page_alias}.gif" alt="{$page_alias}" />
</div>
This way, the image is selected as from which page you are currently on.

Hope this helps you properly? :)

Re: Sidebar & images

Posted: Fri Aug 22, 2008 4:14 pm
by tth
perfect - thank you !

Re: Sidebar & images (solved)

Posted: Fri Aug 22, 2008 5:52 pm
by christiaans
You're very welcome :).