[TYPO3] Wrapping in menues
Tyler Kraft
headhunterxiii at yahoo.ca
Sun Oct 8 20:04:03 CEST 2006
I think you should use the media field as previously outlined (except
use after and not before ;-),and if you need the image to be linked then
use afterImgLink=1. But if you want the page name then that's below
(might not be 100% but the concept should work)
If you could instead use the uid then this would be easy
NO{
subst_elementUid = 1
stdWrap2.noTrimWrap = | | <img src="/fileadmin/{elementUid}.jpg">|
allWrap = <div>|</div>
}
But if you need to have the item name
NO{
after{
append = HTML
append{
value.field = title
value.noTrimWrap = | <img src="/fileadmin/|.jpg"> |
}
}
allWrap = <div>|</div>
}
I've assumed that you actually want the spaces hence the use of noTrimWrap
hth
Thomas Rune Korsgaard wrote:
> Hello list.
>
> I wanted to create a menu that was something like :
>
> <div> menuitem1 <img src"menuitem1.jpg"> </div>
> <div> menuitem2 <img src"menuitem2.jpg"> </div>
> <div> menuitem3 <img src"menuitem3.jpg"> </div>
> <div> menuitem4 <img src"menuitem4.jpg"> </div>
>
> So that every menu item was wrapped around an image that had the
> corresponding name. I tried to build my menu like this:
>
> NO.allWrap = <div> | <img src=" | .jpg"> </div>
>
> but this was without luck. Any good sugestions? The idear is that I
> want a different image accosiated to each menu item.
>
> Thanks!
>
> Yours,
> /Thomas
More information about the TYPO3-english
mailing list