[Typo3] SYS_LASTCHANGED

Mike Jones mrt.jones at ntlworld.com
Thu Feb 24 18:22:26 CET 2005


Hi Rickard

Thanks for your response.

Yes, I tried the mode=tstamp method but it only works if there is a change
to the page record itself not to content records on the page.

But, once again, thank you for taking the time to reply.

Mike

----- Original Message -----
From: "Rickard Andersson" <rickard.andersson+typo3 at gmail.com>
Newsgroups: typo3.english
To: <typo3-english at lists.netfielders.de>
Sent: Thursday, February 24, 2005 3:10 PM
Subject: Re: [Typo3] SYS_LASTCHANGED


> >From the TSref page for HMENU:
>
> "mode: Which field in the pages-table to use. Default is "SYS_LASTCHANGED"
> (which is updated when a page is generated to the youngest tstamp of the
> records on the page), "manual" or "lastUpdated" will use the field
> "lastUpdated" (set manually in the page-record) and "tstamp" will use the
> "tstamp"-field of the pagerecord, which is set automatically when the
record
> is changed. "crdate" will use "crdate"-field of the pagerecord.
"starttime"
> will use the starttime field. Fields with zero value is not selected
> anyway."
>
> It's not absolutely clear, but I think mode = tstamp is what you're after.
> Something like this:
>
> tempUpd = HMENU
> tempUpd.special = updated
> tempUpd.special.value=7, 93, 100
> tempUpd.special {
>   mode = tstamp
>   depth = 3
>   maxAge = 3600*24*3
>   limit = 8
> }
>
> /Rickard
>
>
> "Mike Jones" <mrt.jones at ntlworld.com> skrev i meddelandet
> news:mailman.627.1109168841.24686.typo3-english at lists.netfielders.de...
> > Hi List
> >
> > I'm really pushing the limits of the envelope now!
> >
> > I'm trying to include a menu of links to pages that have recently
> changed -
> > no prizes for innovation there!
> >
> > I'm using this fairly basic TS in my template setup field
> >
> > tempUpd = HMENU
> > tempUpd.special = updated
> > tempUpd.special.value=7, 93, 100
> > tempUpd.special {
> > depth=3
> > maxAge = 3600*24*3
> > limit = 8
> > }
> >
> > which is pretty much as it appears in TSREF doc
> >
> > If I include a mode entry, e.g. mode = tstamp
> > the menu works and shows pages that have had the page record edited
within
> > the last three days - I accept that
> > I want to use the default field in the pages table which I believe is
> > SYS_LASTCHANGED - which I expect to update to the earliest tstamp of the
> > records on the page. So if I create a new content item on a page the
> > SYS_LASTCHANGED value for the page should update to the value of the
> tstamp
> > field of the new content record. and hence show in my menu.
> >
> > It doesn't. The SYS_LASTCHANGED field in the table stays at the same
value
>
> > and so the page does not get added to the menu of recently updated
pages.
> >
> > Any thoughts?
> >
> > Thank you for your help.
> >
> > Mike Jones
> >
>
>
> _______________________________________________
> 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