[TYPO3-english] (beginer) How to transform tt_news catMenu (nested mode) in a html select dropdown with link to category ?

vincent BONNIER (kollebolle) vincent at kollebolle.com
Wed Jul 4 20:37:37 CEST 2012


Graphist desires are what they are ... I have to transform the tt_news
catMenu in a dropdown menu like it :

<select onChange="someJs...">
  <option value="url->cat1">cat1</option>
  <option value="url->cat2">cat2</option>
  [...]
</select>

For now I can wrap the catMenu with <select></select> and wrap <option>
around categories name but don't understand how to put the good typolink
in the value="" parameter.  (I begin with TypoScript )
Did I miss Something ?
Could someone help me (or give me some link to read :) ), or should I look
in the TER to find an already existing extension to do that ?


More Informations -----------------
For now with help of archive and google i am here :

plugin.tt_news {
  displayCatMenu {
    catmenu_stdWrap.wrap = <div class="trieur"><select
id="categoryTrieur">|</select></div>
    catmenuHeader_stdWrap.wrap = <option value=""> select a category
</option>
    catmenuItem_ACT_stdWrap.wrap = <option value="|"
selected="true">|</option>
    catmenuLevel1_stdWrap.wrap = <option value="|">|</option>
  }
}

I don't understand how to replace the first pipe (the first wrap) with the
good link to the current category ?
Btw i don't really know how-to/where generate the good typolink to put in
the value param ?

Special hello for people present in T3UNI2012 in Annecy !

-- 
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Vincent Bonnier.
vincent at kollebolle.com


More information about the TYPO3-english mailing list