[TYPO3-english] A picture for every page in the navigation
Jeppe Donslund
jd at webmasters.dk
Mon Jan 12 14:35:36 CET 2009
Hi Joe
Great.
Can it contain the Title as text together with the picture also
Regards
Jeppe
JoH asenau skrev:
>> I am looking for a way to create a navigation with a picture for each
>> page. Also both NO and ACT.
>> Tha pictures are made as jpg's. Not generated dynamically by TYPO3.
>>
>> Any ideas?
>
> You could upload the images to the media field of each page you want to show
> up in the menu.
> Then you can use them within a TMENU like this:
>
> lib.whatever = HMENU
> lib.whatever {
> 1 = TMENU
> 1 {
> wrap = <ul>|</ul>
> NO = 1
> NO {
> wrapItemndSub = <li>|</li>
> stdWrap.cObject = IMAGE
> stdWrap.cObject {
> file {
> import = /uploads/media
> import.field = media
> import.listNum = 0
> }
> altText.field = nav_title//title
> titleText.field = nav_title//title
> }
> }
> ACT < .NO
> ACT.stdWrap.cObject.file.import.listNum = 1
> }
> }
>
> This will create an unordered list of linked images with the appropriate alt
> and title attributes.
> listNum is used to get the correct file out of a list of filenames using 0
> for the first and 1 for the second filename, so be sure to upload them in
> the desired order.
>
> HTH
>
> Joey
>
More information about the TYPO3-english
mailing list