[TYPO3-english] "special menu" question
Kim Holberg Andersen
kim at crewcut.dk
Wed Apr 15 16:56:23 CEST 2009
Hi Andreas,
thanks for the tip - i partly got it to work with this code:
##menu browse
27 = HMENU
27.special = browse
27.wrap = <div id="previous-next-menu" align="right">|</div
27.special {
items = prev | next
prev.fields.title = << back
next.fields.title = next >>
}
27.1 = TMENU
27.1.NO {
#linkWrap = |
beforeImg = fileadmin/img/previous.gif
doNotShowLink = 1
beforeImgLink = 1
}
If i use this:
beforeImg = fileadmin/img/previous.gif | fileadmin/img/next.gif
i get nothing at all. The problem with the above is, that previous and
next has the same arrow pointing towards "previous" as beforeImg defines
the samme gif before the menu item. Something with the wrap i guess, but
cannot figure out what i do wrong.
Regards,
Kim
Andreas Burg wrote:
> Hi Kim
>
>> ##menu browse
>> 27 = HMENU
>> 27.special = browse
>> 27.wrap = <div id="previous-next-menu" align="right">|</div
>> 27.special {
>> items = prev | next
>> prev.fields.title = << prev
>> next.fields.title = next >>
>> }
>> 27.1 = TMENU
>> 27.1.NO.linkWrap = |
>>
>>
>> Could someone help me with the code to replace prev / next with my
>> buttons placed in a folder in fileadmin/....
>
> I haven't tried, but try to build up your TMENU and put the image into
> the link:
>
> 27.1 = TMENU
> # you don't need the next line
> # 27.1.NO.linkWrap = |
> # I hope this works
> 27.1.NO.beforeImg = fileadmin/prev.gif | fileadmin/next.gif
> # to hide the normal link text
> 27.1.NO.doNotShowLink = 1
> # to put the image into the link
> 27.1.NO.beforeImgLink = 1
>
> see also TSref
>
More information about the TYPO3-english
mailing list