Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Page last updated plug-in
Haha – I can’t program – it’s just an idea for a plug-in:-)
Offline
Re: Page last updated plug-in
What would you be measuring since the pages are dynamically generated? The last time the template was modified?
Dammit Jim, I’m a poet, not a programmer…
Joined the TXP Obsessed 2/25/04: http://www.chrislott.org/
Offline
Re: Page last updated plug-in
Last time article was modified, or any content …
I don’t develop blog-style, I develop regular sites with semi-static content …
Offline
#4 2004-04-23 09:38:22
- fathersGrave
- Archived Plugin Author
- Registered: 2004-02-24
- Posts: 9
Re: Page last updated plug-in
Articles have their “posted” tag. If you have a “static” one-per-page articles just use forms to code smth like:
Last modified: <txp:posted />
Offline
Re: Page last updated plug-in
The last time the site was updated (by an article being saved or a comment recorded) is available in MySQL datetime format:
<?php echo $GLOBALS['lastmod'] ?>
There’s no easy way at the moment to get to the last-updated field for a particular article, but making a tag for it would be easy.
text*
Offline
Re: Page last updated plug-in
So you want the last time the “article” was updated and by “any content” you are still referring to material that is posted as an article rather than template material? I get it. Maybe I’ll have time to whip up a plugin tonight. I need to familiarize myself with the whole plugin authoring environment…
Dammit Jim, I’m a poet, not a programmer…
Joined the TXP Obsessed 2/25/04: http://www.chrislott.org/
Offline
Re: Page last updated plug-in
Offline
Pages: 1