[TYPO3] TMENU & GMENU

Christopher Torgalson bedlamhotel at gmail.com
Mon Jun 11 18:29:16 CEST 2007


Hi Tomasz,

On 6/10/07, Tomasz Trznadel <tdi666 at op.pl> wrote:
> Hello,
> I was wondering if its possible to make a TMENU item with a background
> genereted by GMENU or GIFBUILDER.
> What I need is a <dt> element with background-image made by GIFBUILDER or so
> and a normal link inside. Something like this:
> <dt style="background-image: url(typo3temp/menu/this_item.gif)"><a
> href="index.php?id=5">gallery</a></dt>
> this_item.gif can be genereted it dont need to be gallery.gif
>
> my menu now looks like this:
>
>
> ## Menu mainMenu [Begin]
>
> lib.mainMenu = COA
> lib.mainMenu {
>         2 >
>         2 = HMENU
>  2 {
>  wrap = <div class="menu_space">|</div>
>  1 = TMENU
>  1 {
>   noBlur=1
>   expAll=1
>   wrap = <dl class="l1" id="space_menu">|</dl>
>   NO {
>    stdWrap.htmlSpecialChars = 1
>    wrapItemAndSub = <dt class="l1">|</dt>
>   }
>   IFSUB = 1
>   IFSUB {
>    stdWrap.htmlSpecialChars = 1
>    wrapItemAndSub = <dt class="l1 sub" onmouseover="p(this)"
> onmouseout="u(this)">|
>   }
>   ACT=1
>   ACT {
>    stdWrap.htmlSpecialChars = 1
>    wrapItemAndSub = <dt class="l1 act">|</dt>
>   }
>   ACTIFSUB=1
>   ACTIFSUB {
>    stdWrap.htmlSpecialChars = 1
>    wrapItemAndSub = <dt class="l1 sub act" onmouseover="p(this)"
> onmouseout="u(this)">|
>
>   }
>  }
>  2 = TMENU
>  2 {
>   noBlur=1
>   expAll=1
>   wrap = </dt><dd class="l2"><dl class="l2">|</dl></dd>
>   NO {
>    stdWrap.htmlSpecialChars = 1
>    wrapItemAndSub = <dt class="l2 first" onmouseover="p(this)"
> onmouseout="u(this)">|</dt> |*| <dt class="l2" onmouseover="p(this)"
> onmouseout="u(this)">|</dt>
>   }
>   ACT=1
>   ACT {
>    stdWrap.htmlSpecialChars = 1
>    wrapItemAndSub = <dt class="l2 first act" onmouseover="p(this)"
> onmouseout="u(this)">|</dt> |*| <dt class="l2 act" onmouseover="p(this)"
> onmouseout="u(this)">|</dt>
>   }
>  }
> }
> }
>
> ##Menu mainMenu [End]
>
> Any ideas? :)


Depending on the complexity and control you need out of your menu, you
may want to check out the tmenuitem property 'allStdWrap' [1] or,
alternatively, you may want to check out the extension bh_firtools
[2].


-- 
Christopher Torgalson
http://www.typo3apprentice.com/


[1] http://typo3.org/documentation/document-library/references/doc_core_tsref/4.1.0/view/10/8/
[2] http://typo3.org/extensions/repository/view/bh_firtools/1.2.3/


More information about the TYPO3-english mailing list