[TYPO3] How to use constants in TS condition
Bert Hiddink
hiddink at bendoo.com
Mon Nov 20 21:59:56 CET 2006
Hello, Jan!
Jan Zýka wrote:
> Hello,
> probably a newbie question, but I still cant find a solution. I set a
> constant in a constant field, let say it is news=1. Later, i want to
> display
> or not (depending on this contstant) part of the page. I found it useful
> later in extension templates (Like allways display news by setting
> news=1 in
> the rootpage, except the pages where news=0 is set in extension template).
> Unfortunatelly I cant find out how to test constants in TS condition. Smth
> like:
>
> [{$news}]
> show part of the page
> [ELSE]
> do nothing
> [GLOBAL]
>
> Any help will be appreciate. Thanks in advance.
>
> Zak
[PIDinRootline = {$news}]
show part of the page
[ELSE]
do nothing
[GLOBAL]
Also look at:
PIDupinRootline
grt,
-brt
--
Bert Hiddink
hiddink at bendoo.nl
BENDOO e-work solutions
http://www.bendoo.nl
Harterinkdijk 8, 7065 AR SINDEREN
The Netherlands
Tel. 0315 244525
More information about the TYPO3-english
mailing list