[TYPO3] tt_news category menu header

Peter Gallagher pgallagher at electricretina.com
Tue Jul 25 05:44:45 CEST 2006


I seem to have run into some strange behavior with the catmenu in 
tt_news. According to the documentation I can make a 'nestedWraps' 
version of the menu - which I have done. The problem is that wrapping 
the header only wraps the text, not the link. But when you wrap the menu 
items it wraps the text and link.

Is this a bug or the intended behavior?

Does anyone have a solution that will let me wrap the category header 
and the link?

Here is my TS:
displayCatMenu{
    mode = nestedWraps
    #wrap for the complete cat menu
    catmenu_stdWrap.wrap = <div id="post-catmenu"> | </div>
    #wrap for the header of the category list
    catmenuHeader_stdWrap.wrap =  <h1 class="catheader"> | </h1>

    #wraps for the active and inactive category links in the tree
    catmenuItem_ACT_stdWrap.wrap = <strong>|</strong>
    catmenuItem_NO_stdWrap.wrap = |
   
    #wraps for 'n' levels
    catmenuLevel1_stdWrap.wrap = <div class="catlevel1">|</div>
    catmenuLevel2_stdWrap.wrap = <div class="catlevel2">|</div>

    #order the categories by title
    catOrderBy = title
  }

HTML Result:

<div id="post-catmenu">
<a href="index.php?id=38" ><h1 class="catheader">Select a category:</h1></a>
<div class="catlevel1"><a href="index.php?id=38&amp;tx_ttnews[cat]=4&amp;cHash=17227dd7c3" >General</a></div>
<div class="catlevel1"><a href="index.php?id=38&amp;tx_ttnews[cat]=10&amp;cHash=7c0aa9f70f" >Mobile Technology</a></div>
</div>

Obviously I want it to look like this: 
<div id="post-catmenu">
<h1 class="catheader"><a href="index.php?id=38" >Select a category:</a></h1>
<div class="catlevel1"><a href="index.php?id=38&amp;tx_ttnews[cat]=4&amp;cHash=17227dd7c3" >General</a></div>
<div class="catlevel1"><a href="index.php?id=38&amp;tx_ttnews[cat]=10&amp;cHash=7c0aa9f70f" >Mobile Technology</a></div>
</div>


Any suggestions?

thanks,Peter



More information about the TYPO3-english mailing list