[TYPO3] Use {field:date} in datawrap
Peter Klein
peter at umloud.dk
Wed Dec 28 11:55:29 CET 2005
Hi Dennis. Yes that should be possible with something like this:
lib.currentYear = COA
lib.currentYear {
10 = LOAD_REGISTER
10.current_year.data = date:U
10.current_year.strftime= %Y
}
(Should be copied into a marker in your template BEFORE you access
"register:current_year")
---
Peter Klein / Umloud Untd
"Dennis Cheung" <hkdennis2k at gmail.com> wrote in message
news:mailman.3495.1135765764.10878.typo3-english at lists.netfielders.de...
Can we push the result of TEXT(CURRENT_YEAR) object into
{register:curreny_year}??
Dennis
On 12/28/05, Peter Klein <peter at umloud.dk> wrote:
> Hi Peter. It's not possible to set the date format if you use "dataWrap".
> Instead convert your TEXT object into a COA object, (which can contain
> several other objects.) Then create a seperate TEXT object for the part
> that
> holds your date, and set the date format for that object.
>
> ---
> Peter Klein / Umloud untd
>
> "Peter Beernink (DRecomm)" <p.beernink at drecomm.nl> wrote in message
> news:mailman.3489.1135763064.10878.typo3-english at lists.netfielders.de...
> > Hi List,
> >
> > I've got the following issue with a site I'm currently working on.
> > I want to place the date of the contentblock next to the header.
> > I've added {field:date} as part of the datawrap and it works correctly,
> > but it
> > only displays the value from the database, so only the timestamp.
> > I've been searching for a solution for setting it to d-m-Y, but no
> > success
> > until now.
> > Does anyone have exprerience with this issue?
> >
> > Thanks in advance.
> >
> > Peter Beernink
>
>
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>
More information about the TYPO3-english
mailing list