[TYPO3] I thought this would be simple :-)

Patrick O'Hara pdohara at practicalprogrammer.org
Mon Mar 13 20:05:54 CET 2006


That did it.
What does the line if.isTrue.data = page:lastUpdated do?




--
Tanks for your Support
Pat O'Hara
  _      _      _
/*\==  /*\==  /*\==
<ooo>  <ooo>  <ooo>

On 3/13/06, JoH <info at cybercraft.de> wrote:
>
> > I found an article on the typo3 site talking about putting the last
> > update date on a page.  I thought the directions looked simple enough
> > so I would give it a try.  I followed the direction and I am getting
> > the date value on the page, rather than a formatted date.  Here is
> > what I added to my template:
> > *CONSTANTS:*
> > styles.content.lastUpdate.label =
> > styles.content.lastUpdate.comment_auto =
> > styles.content.lastUpdate.wrap = |
> > styles.content.lastUpdate.format = l, F j, Y
> > *SETUP:*
> >   subparts.LAST_MODIFIED < styles.content.lastUpdate
> >   subparts.LAST_MODIFIED = TEXT
> >   subparts.LAST_MODIFIED {
> >     data = page:lastUpdated
> >     if.isTrue.data = page:lastUpdated
> >     data = l, F j, Y
> >     wrap = |
> >     data = register:SYS_LASTCHANGED
> >     if >
> >   }
> >
> > My question is where do I set the format, since what I did has no
> > obvious effect.  Also where can I look to find the format specifiers.
> > I expect that the format above will result in a date of the form
> > *Monday, March 13, 2006*. Where can I find the list of characters
> > that I can use to format the date. Also, I noticed that the search
> > feature at ( http://lists.netfielders.de/pipermail/typo3-english/)
> > does not appear to work, is there another way to search the archives
> > of this list?
>
> data = l, F j, Y
> should be changed to
> date = l, F j, Y
>
> Joey
>
> --
> Wenn man keine Ahnung hat: Einfach mal Fresse halten!
> (If you have no clues: simply shut your knob sometimes!)
> Dieter Nuhr, German comedian
> openBC: http://www.cybercraft.de
>
>
> _______________________________________________
> 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