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

Victor Livakovsky v-tyok at mail.ru
Thu Jul 5 17:38:27 CEST 2012


Hi, Vincent.

> 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 ?

If tt_news supports stdWrap fully, you may do it like this:
catmenuItem_ACT_stdWrap.cObject = COA

catmenuItem_ACT_stdWrap.cObject.10 = TEXT
catmenuItem_ACT_stdWrap.cObject.10.typolink {
  parameter = [page-id]
  additionalParams.field = [category-id]
  additionalParams.wrap = &tx_ttnews[cat]=|
  returnLast = url
}
catmenuItem_ACT_stdWrap.cObject.10.wrap = <option value="|">

catmenuItem_ACT_stdWrap.cObject.20 = TEXT
catmenuItem_ACT_stdWrap.cObject.20 {
  field = [category-title]
  wrap = |</option>
}

Just replace values in [] with correct numbers and fieldnames. 



More information about the TYPO3-english mailing list