Welcome Guest, Not a member yet? Register   Sign In
Requesting advice on how to handle a later-added "modified date" field
#1

[eluser]Kinsbane[/eluser]
Hi all,

I have a table of documents that initially did not contain a "last modified" field - a bunch of these documents therefor have no value for the last modified field, and when the document is returned in a search or browse, the date given is Dec 31, 1969.

What I would like to do is take any documents that have a last modified value of less than 100 to show up as "Not been recently modified" and the others will say "Updated: Mon 01, 2000".

Now I'm wondering if I should do a helper, or if I should add a function to my model. Part of my other problem with adding it to the model is how I would then handle the check on the last_modified field. I can't seem to decipher where in my code flow the last modified data conversion should take place - but I guess once I figure that out, how do I then put it back into my $data['docs'] array in the appropriate place so the view handles it properly?

Thanks a lot in advance for any help given!


Messages In This Thread
Requesting advice on how to handle a later-added "modified date" field - by El Forum - 12-20-2007, 02:00 PM



Theme © iAndrew 2016 - Forum software by © MyBB