1
tehquickness
Custom multimenu template help

I have made a custom template to go along with multimenu. It is a horizantal menu and the pattern I am trying for is this:
link | link | link | link
the code i am using is a follows

<{foreach item=imenu from=$block.contents}>
href="<{$imenu.linkurl}>"<{$imenu.target}><{/if}>title="<{$imenu.alt_title}>">
<{$imenu.image}><{$imenu.title}>
 |
<{/foreach}>

But unfortunatly, it gives me this:
link | link | link | link |
I need to add a counter that detect when the last link is present and then not print the  | after it. How can I do this?

Thanks in advance.

2
blueteen
Re: Custom multimenu template help
  • 2007/3/18 10:39

  • blueteen

  • Quite a regular

  • Posts: 379

  • Since: 2004/7/16


look at multiMenu/templates/multimenu_dyn_horiz.html



    

        <
li class="multimenu">
        <
a title="<{$alt_title}>"
        
<{if $linkurl}><{$target}>href="<{$linkurl}>"<{else}>style="cursor:pointer;" onClick="return clickreturnvalue<{$block.mm}>()"<{/if}>

         
onMouseover="dropdownmenu<{$block.mm}>(this, event, menu<{$block.mm}><{$menu}>, menuwidth<{$block.mm}>)" 
        
onMouseout="delayhidemenu<{$block.mm}>()">
        <
img src="<{$xoops_url}>/modules/multiMenu/script/images/arrow1.gif" alt="<{$alt_title}>" />
    <{else}>
    <{
assign var=firstlink value=$firstlink+1}>
        

        


hope this helps you !

3
limecity
Re: Custom multimenu template help
  • 2007/3/18 13:50

  • limecity

  • Friend of XOOPS

  • Posts: 1602

  • Since: 2003/7/6 0


I am on the same topic
How do i implement a horizontal menu?

*edit*edit*

i wish to implement the menu inside the theme. not as a block. anyway i can do that?
hhttp://www.mounthiking.com
all your hiking gears and gadgets


4
blueteen
Re: Custom multimenu template help
  • 2007/3/18 16:47

  • blueteen

  • Quite a regular

  • Posts: 379

  • Since: 2004/7/16


hi,
look at :
http://website/modules/multiMenu/admin/index.php?op=help&Help=04

2. Menu integration into a XOOPS theme

Login

Who's Online

259 user(s) are online (120 user(s) are browsing Support Forums)


Members: 0


Guests: 259


more...

Donat-O-Meter

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

Latest GitHub Commits