[TYPO3-english] menu background image

Katja Lampela katja.lampela at lieska.net
Thu Jan 28 19:19:19 CET 2010


Hi,

I have a menu in which a menu item uses one extension's field (defined 
in page properties) as a background image.

This menu works just as it should.

    temp.topmenu = HMENU
    temp.topmenu.entryLevel = 0
    temp.topmenu.1 = TMENU
    temp.topmenu.1 {
    noBlur = 1
    CUR = 1
    ACT = 1
    wrap = <ul>|</ul>
    NO {
     allWrap.insertData=1
     allWrap=<li class="rgm{field:tx_rgmenu_special}">|
     wrapItemAndSub = |</li><li class="vali"><img 
src="fileadmin/template/kuvat/menu-vali.gif" width="6" height="88" /></li>
   }
      ACT {
     allWrap.insertData=1
     allWrap=<li class="rgm{field:tx_rgmenu_special} act">|
     wrapItemAndSub = |</li><li class="vali"><img 
src="fileadmin/template/kuvat/menu-vali.gif" width="6" height="88" /></li>
   }
        CUR {
     allWrap.insertData=1
     allWrap=<li class="rgm{field:tx_rgmenu_special} act">|
     wrapItemAndSub = |</li><li class="vali"><img 
src="fileadmin/template/kuvat/menu-vali.gif" width="6" height="88" /></li>
   }
    }


Now I have a submenu and above that is a header for the submenu. I would 
like to get the page in question with the same background image as it is 
in the topmenu. Here is the leftmenu where the 10 is the header section.

temp.leftmenu = COA
temp.leftmenu {
    10 = TEXT
    10.data = leveltitle:1
    10.wrap = <div class="rgm{field:tx_rgmenu_special}">|</div>
    10.insertData = 1

# Leftside Navigation
    20 = HMENU
    20.entryLevel = 1
    20.1 = TMENU
    20.1 {
    noBlur = 1
    wrap = <ul>|</ul>
    ACT = 1
    CUR = 1
    NO.wrapItemAndSub = <li>|</li>
    ACT.wrapItemAndSub = <li class="act">|</li>
    CUR.wrapItemAndSub = <li class="act">|</li>
    }


NOw with this code the "rgm{field:tx_rgmenu_special}" results as rgm1. 
Even though it should be also rgm2, rgm3...

So how can I tell the leveltitle thing to get the rgm part from this 
special page's page header?

-- 
With kind regards

Katja Lampela
*Lieska-tuotanto
*www.lieska.net


More information about the TYPO3-english mailing list