Menu with images help
Posted: Thu Mar 17, 2011 3:41 pm
Hi
I am new to this and not as yet very good! however what I am trying to do is assign an image on a page to the menu.
The menu then shows the image for that page.
In the template i have
{content_module block="menuimage" module="GBFilePicker" mode='browser' label="Menu Image " dir="images/small" scaling_width="50px" scaling_height="50px" assign="menuimage1" page_tab="Images" block_tab="1 Menu Image" description="Select menu image for this page"}
And then the menu I have
{foreach from=$nodelist item=node}
<a href="{$node->url}">
<img src="{uploads_url}/{$menuimage1}" width="50px" height="50px"/></a>
{/foreach}
Well the menu image works but only shows all the same image from the page you are on.
How can I assign a image per page so that the menu has a different image for each page.
Thanks very much if you can help me a little!
I am new to this and not as yet very good! however what I am trying to do is assign an image on a page to the menu.
The menu then shows the image for that page.
In the template i have
{content_module block="menuimage" module="GBFilePicker" mode='browser' label="Menu Image " dir="images/small" scaling_width="50px" scaling_height="50px" assign="menuimage1" page_tab="Images" block_tab="1 Menu Image" description="Select menu image for this page"}
And then the menu I have
{foreach from=$nodelist item=node}
<a href="{$node->url}">
<img src="{uploads_url}/{$menuimage1}" width="50px" height="50px"/></a>
{/foreach}
Well the menu image works but only shows all the same image from the page you are on.
How can I assign a image per page so that the menu has a different image for each page.
Thanks very much if you can help me a little!