[TYPO3] Down counter (solved)
Peter Klein
peter at umloud.dk
Fri Feb 10 10:44:45 CET 2006
Hi tapio. thats just my prefered method of naming the constants (The same
way extensions etc. are naming their constants).
That way I can easily find the TS object that uses that constant.
With a constant like:
"lib.countdown.date = 1142095231"
^ ^ ^ ^ ^ ^ ^
I instantly know that it is used inside my "lib.countdown" object.
---
Peter Klein / Umloud Untd
"tapio" <tapio.markula at dnainternet.net> wrote in message
news:mailman.1.1139564221.25775.typo3-english at lists.netfielders.de...
> Peter Klein wrote:
>> Hi tapio. All values in TS are strings, but depending on the stdWrap
>> properties you use, you can convert tose to dates or numbers
>
>> The various parameters for "date", "strftime" can be found here:
>> http://typo3.org/documentation/document-library/doc_core_tsref/Datatype_reference/
>
>> The reson why I used a Constant, was just to avoid entering the countdown
>> date more than once. ;)
>
> In fact I didn't wondere that - but why the constant was an object and not
> just a string - but the reason seems to be necessary conversion and pure
> string would not worked
> maybe
> myDate.date=1142095231
> or
> temp.myDate.date= 1142095231
> (I personally use the standard page module, not TemplaVoila)
>
> I have used just pure string constants and using objects in constants was
> new for me
More information about the TYPO3-english
mailing list