Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2004-04-18 09:27:35

raveoli
Member
From: Copenhagen
Registered: 2004-03-06
Posts: 205
Website

Page last updated plug-in

Haha – I can’t program – it’s just an idea for a plug-in:-)

Offline

#2 2004-04-23 04:06:58

fncll
Member
From: Frozen North
Registered: 2004-02-25
Posts: 19
Website

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

#3 2004-04-23 07:08:13

raveoli
Member
From: Copenhagen
Registered: 2004-03-06
Posts: 205
Website

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

#5 2004-04-23 09:44:00

Dean
Founder (Gone, but not forgotten)
From: Languedoc
Registered: 2004-02-14
Posts: 235
Website

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

#6 2004-04-23 14:22:09

fncll
Member
From: Frozen North
Registered: 2004-02-25
Posts: 19
Website

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

#7 2005-02-05 17:01:28

andreas
Member
Registered: 2004-02-28
Posts: 453
Website

Offline

Board footer

Powered by FluxBB