[Solved] Sidebar & images

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Locked
tth
New Member
New Member
Posts: 3
Joined: Fri Aug 22, 2008 8:23 am

[Solved] Sidebar & images

Post 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
Last edited by Anonymous on Sat Aug 23, 2008 1:05 pm, edited 1 time in total.
christiaans
Power Poster
Power Poster
Posts: 300
Joined: Tue Mar 04, 2008 10:37 am

Re: Sidebar & images

Post 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? :)
tth
New Member
New Member
Posts: 3
Joined: Fri Aug 22, 2008 8:23 am

Re: Sidebar & images

Post by tth »

perfect - thank you !
christiaans
Power Poster
Power Poster
Posts: 300
Joined: Tue Mar 04, 2008 10:37 am

Re: Sidebar & images (solved)

Post by christiaans »

You're very welcome :).
Locked

Return to “Layout and Design (CSS & HTML)”