[Typo3-german] conditionen PIDinRootline
Peter Russ
peter.russ at 4many.net
Wed Jul 27 09:48:27 CEST 2005
Arnd Messer wrote:
>
>
> 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]
>
"not tested"
Weiter empfehle ich:
http://typo3.org/documentation/mailing-lists/english-main-list-archive/
und nach "nest condition" suchen.
Regs. Peter.
--
_____________________________
4Many® Services
openBC: http://www.openbc.com/go/invuid/Peter_Russ
More information about the TYPO3-german
mailing list