[TYPO3-english] [TYPO3-UG English] Typoscript date check

Christopher Torgalson bedlamhotel at gmail.com
Fri Aug 28 16:52:09 CEST 2009


Hi,

On 28-Aug-09, at 7:40 AM, René van Densen wrote:

> Hi David,
>
> taking them outside of the brackets is an issue, this check really  
> should
> only be with tt_news single view...



This is not any kind of problem. You define your default values inside  
the braces, and then place overrides in the conditions:

lib.weekday = HTML
lib.weekday {
	value = Weekday
}

[dayofweek = 0]
	lib.weekday.value = Sunday
[dayofweek = 6]
	lib.weekday.value = Saturday
[global]

If this still isn't satisfactory, you should also check out the CASE  
cObject (much like switch() in php) in addition to your work with 'if'.

--
Christopher Torgalson
http://www.typo3apprentice.com/







More information about the TYPO3-english mailing list