View Single Post
(#4)
Old
beska88 beska88 is offline
Member
beska88 is on a distinguished road
 
Posts: 30
Join Date: Mar 2012
Default 03-16-2012, 07:33 PM

yes, it is possible to have different jpg-s for different menus.

<div id="menu">
<ul>
<!--{%menu_start=1%}-->

<li><a href="{%menu_href%}"><img alt="{%menu_display%}" src="web_images/centercap_HOME_small.jpg" width="100" height="90" /></a></li>

<!--{%menu_end=1%}-->
</ul>
</div>
<!-- end menu -->


in this menu loop starts at "<!--{%menu_start=1%}-->" and ends at "<!--{%menu_end=1%}-->"
between this list item is displaying three times but there is only two variables and they are: {%menu_href%} and {%menu_display%}. where menu_href is the link where user is redirected when clicked, and menu_display is the word (in this case) what will be displayed if not image.

if you had a {%image_src%} then there could be three images within the loop, something like this:

<div id="menu">
<ul>
<!--{%menu_start=1%}-->

<li><a href="{%menu_href%}"><img alt="{%menu_display%}" src="{%image_src%}" width="100" height="90" /></a></li>

<!--{%menu_end=1%}-->
</ul>
</div>


but this {%image_src%} must be in database and must contain links to image like "web_images/centercap_HOME_small.jpg"
Reply With Quote