[TYPO3] Wrapping in menues
Bernd Wilke
xoonsji02 at sneakemail.com
Sun Oct 8 19:45:02 CEST 2006
On Sun, 8 Oct 2006 16:19:19 +0200, Thomas Rune Korsgaard wrote
with subject "[TYPO3] Wrapping in menues":
> 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.
wrap is just a wrap, no marker-replace. so you can't put a menu-value in
two places without tricks.
but look at this (no tricks):
NO {
allWrap >
allWrap = <div class="imagemenu">|</div>
beforeWrap = |<br />
beforeImg = fileadmin/img/questionmark.tif
beforeImg {
import = uploads/media/
import.listNum = 0
import.override.field = media
height = 120
}
}
it's the core of a "menu of subpages" with images (unfortunately the image
is not linked, just the pagename)
but it has some pros:
the image ist part of the page (media-field) - no dependence on matching
filenames
and there is a default-image (questionmark.tif)
Bernd
--
----------------
Bernd Wilke
Annweilerstr.20
40229 Düsseldorf
0211/229 2800
More information about the TYPO3-english
mailing list