[TYPO3-english] TT_news category menue
Robert Wildling
robertwildling at gmail.com
Fri Nov 18 21:15:11 CET 2011
Hi,
For some reason the tt_news 3.1 CATMENU won't work in my enviroment, so
I put sth together myself with lots of help from other forums:
getCategories = CONTENT
getCategories {
table = tt_news_cat
select {
pidInList = 17
where = parent_category=0
orderBy = title
}
renderObj = COA
renderObj {
10 = TEXT
10.dataWrap = <option value="{field:uid}">{field:title}</option>
10.insertData = 1
}
}
temp.newscats = COA
temp.newscats {
10 = TEXT
10.value = <form id="filter"
action="index.php?id=7&tx_ttnews[cat]={---> THIS IS THE PROBLEM <---}"
method="get"><fieldset>
20 = TEXT
20.value = <label for="destination">Filer:</label>
30 = TEXT
30.value = <select id="destination" name="destination"
size="1"><option value="0">Alle</option>
40 < getCategories
50 = TEXT
50.value = </select>
60 = TEXT
60.value = <input name="no_cache" type="hidden" value="1" />
70 = TEXT
70.value = <input type="button" value="Submit" /></fieldset></form>
}
The problem is getting the category id into the form action url, so that
an onchange.command could reload the page and identify the chosen category.
Furthermore it would be great to include a cHash... ynabody can help here?
Thanks!
Regards,
Robert
More information about the TYPO3-english
mailing list