[Typo3-german] conditionen PIDinRootline
Arnd Messer
meincontainer at gmail.com
Tue Jul 26 14:29:03 CEST 2005
Peter Russ schrieb:
> Schachteln ist nicht.
Aus der tt_news liste vom 3.7.2005
zitat rupi:
--
hint: you can nest conditions.
something like this could do the trick:
(not tested)
[globalVar = GP:tx_ttnews|cat < 1]
# insert normal content when no category is choosen
page.10.marks.MIDDLECONTENT >
page.10.marks.MIDDLECONTENT = TEXT
page.10.marks.MIDDLECONTENT.value = please choose a category
[else]
# do the news stuff
plugin.tt_news.code >
plugin.tt_news.code = LIST
plugin.tt_news.listOrderBy = title asc
plugin.tt_news.limit = 50
# set code to SINGLE if the GETvar tx_ttnews[tt_news] exists
[globalVar = GP:tx_ttnews|tt_news > 0]
plugin.tt_news.code = SINGLE
[global]
# clear main content in page object
page.10.marks.MIDDLECONTENT >
page.10.marks.MIDDLECONTENT < plugin.tt_news
[global]
--
Freiraum Medien
http://freiraum-medien.de
More information about the TYPO3-german
mailing list