Change default modified date

Post Reply
KMandalia
Posts: 301
Joined: Fri Jul 09, 2004 3:50 pm

Change default modified date

Post by KMandalia »

I have two separate issues related to modified date.

1) Our site has 60% database generated pages. So, when webinator walks those pages the modified date gets set to the time webinator walked them.

I want to implement a logic so during fetch, if the server returns modified date/time that matches current date/time during fetch, webinator will keep the modified column of the html table empty for that row instead of putting server's date/time.

2) If server doesn't return a date, then I believe webinator plugs in current date and time. I don't want that to happen. I would rathe keep them empty.

The reason I want modified date empty is because I want to implement "Search by Date". I believe I only have to change one line of code in dowalk script but don't know where since I never (yet) needed to play with the walker.
User avatar
John
Site Admin
Posts: 2622
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH
Contact:

Change default modified date

Post by John »

Empty is treated as "now". You would need to specify some date for it to store. The line that sets it to the current time is <$when="now">.

If the contents of the page does not change then the modified date will not change on a refresh, so the modified date will be the date the record was first seen.
John Turnbull
Thunderstone Software
Post Reply