1
Norman33
special picture at current link
  • 2007/5/7 13:21

  • Norman33

  • Just popping in

  • Posts: 15

  • Since: 2007/4/13


Hi

I want to put picture at current (selected) page in Main Menu, Any advice?

regards.

2
skenow
Re: special picture at current link
  • 2007/5/7 17:59

  • skenow

  • Home away from home

  • Posts: 993

  • Since: 2004/11/17


You will need to edit the main menu template to do this, then adjust your style.css for the additional class -

<!-- Main Menu Template -->
<
table cellspacing="0">
  <
tr>
    <
td id="mainmenu">
      <
class="menuTop[color=ff0000]<{if $xoops_dirname=='system'}> actlink<{/if}>[/color]" href="<{$xoops_url}>/"><{$block.lang_home}></a>
      <!-- 
start module menu loop -->
      <{foreach 
item=module from=$block.modules}>
      <
class="menuMain[color=ff0000]<{if $xoops_dirname==$module.directory}> actlink<{/if}>[/color]" href="<{$xoops_url}>/modules/<{$module.directory}>/"><{$module.name}></a>
        <{foreach 
item=sublink from=$module.sublinks}>
          <
class="menuSub" href="<{$sublink.url}>"><{$sublink.name}></a>
        <{/foreach}>
      <{/foreach}>
      <!-- 
end module menu loop -->
    </
td>
  </
tr>
</
table>


and in style.css -

.actlink {border-rightsolid #0a1b51; background-color: #dde;}


In your case, the stylesheet would specify an image for the .actlink class

Login

Who's Online

236 user(s) are online (182 user(s) are browsing Support Forums)


Members: 0


Guests: 236


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits