[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
Fri Jul 6 13:08:50 CEST 2012
1000000000000000000000000000000 (and not in binary) thanks for you answer !
I was almost having a nervous breakdown with TScript documentation.
Now i can generate (with your help vic):
<div class="trieur">
<select id="categoryTrieur" onchange="javascript:
window.location=this.options[this.selectedIndex].value;">
Sélectionnez une catégorie :
<option value="
portail/air/affichage-liens-tickets/?tx_ttnews%5Bcategory%5D="></option>
<option value="
portail/air/affichage-liens-tickets/?tx_ttnews%5Bcategory%5D="></option>
</select>
</div>
it's better but there are still two problems :(
1./ the typolink are not good
2./ there are not categories titles between <option...> and </option>
I know that i maybe did not put the good things inside [] as you ask me.
But i really don't understand << where to find the name of requires fields
???? >>
How can i know the name ?
Sorry if it's beginning question, i don't understand well typoscript for
now.
Thousand thanks again Vic.
Here is my actual Typoscript :
plugin.tt_news {
displayCatMenu {
catmenu_stdWrap.wrap = <div class="trieur"><select id="categoryTrieur"
onChange="javascript:
window.location=this.options[this.selectedIndex].value;">|</select></div>
#228 = id of the search result page <-- is it right ?
catmenuItem_NO_stdWrap.cObject = COA
catmenuItem_NO_stdWrap.cObject.10 = TEXT
catmenuItem_NO_stdWrap.cObject.10.typolink {
parameter = 228
# [category-id] found on Internet but doesn't seem to function
additionalParams.field = [category-id]
additionalParams.wrap = &tx_ttnews[category]=|
returnLast = url
}
catmenuItem_NO_stdWrap.cObject.10.wrap = <option value="|">
catmenuItem_NO_stdWrap.cObject.20 = TEXT
#field = tite doesnt function, [category-title] nether <-- where to
find it in doc ?
catmenuItem_NO_stdWrap.cObject.20 {
field = title
wrap = |</option>
}
}
}
Don't hesitate to point me on documentation, i really need to increase my
typoscript level.
2012/7/5 Victor Livakovsky <v-tyok at mail.ru>
> 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.
> ______________________________**_________________
> TYPO3-english mailing list
> TYPO3-english at lists.typo3.org
> http://lists.typo3.org/cgi-**bin/mailman/listinfo/typo3-**english<http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english>
>
--
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Vincent Bonnier.
Resp. Technique et Accompagnement
vincent at kollebolle.com
04.37.27.03.89
06.08.32.31.86
More information about the TYPO3-english
mailing list