Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2004-09-10 00:16:38

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Request: Last mod. time

I did a search first and couldn’t find it, so if It has indeed already been done, I apologize. :)

“Last modified” information is held in the database, and you may have Txp output that info through headers. I’d like to have access to this info through a tag, so I can output/manipulate the display of last mod. time.

Does this extension already exist, and if not, would anyone be willing to make it?

Offline

#2 2004-09-10 00:18:38

obeewan
Archived Plugin Author
From: Stockholm, Sweden
Registered: 2004-08-12
Posts: 319
Website

Re: Request: Last mod. time

Last modified of the article or the whole site?

For the whole site there is a built in way, explained somewhere in the forum ;)

For an article, not to my knowledge.


Plugins: ob1_advanced_search 1.032b, ob1_search_score 1.0, ob1_pagination 2.5, ob1_title 4.1, ob1_modified 2.1

“Let your plans be dark and as impenetratable as night, and when you move, fall like a thunderbolt.”
— Sun Tzu

Offline

#3 2004-09-10 00:36:03

tmacwrig
Archived Plugin Author
Registered: 2004-03-06
Posts: 204
Website

Re: Request: Last mod. time

I wrote a last modified plugin (I think it’s somewhere around here) for the whole site

Offline

#4 2004-09-10 00:42:47

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Request: Last mod. time

Whoops, sorry I wasn’t too clear – for an article (called within an article/list context).

Offline

#5 2004-09-10 01:00:42

obeewan
Archived Plugin Author
From: Stockholm, Sweden
Registered: 2004-08-12
Posts: 319
Website

Re: Request: Last mod. time

Do note that a plugin will add another query to the database. A hack will use the one allready in place to fetch the last modified timer.

So what should it be? Plugin or hack?

Edit: Or combo even? ;)

Last edited by obeewan (2004-09-10 01:07:17)


Plugins: ob1_advanced_search 1.032b, ob1_search_score 1.0, ob1_pagination 2.5, ob1_title 4.1, ob1_modified 2.1

“Let your plans be dark and as impenetratable as night, and when you move, fall like a thunderbolt.”
— Sun Tzu

Offline

#6 2004-09-10 01:14:30

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Request: Last mod. time

hmm. I guess I can live with a hack if its not too substantial — I’m trying to keep Txp as vanilla as possible. :)

Offline

#7 2004-09-10 01:49:26

obeewan
Archived Plugin Author
From: Stockholm, Sweden
Registered: 2004-08-12
Posts: 319
Website

Re: Request: Last mod. time

Hehe .. My TXP vanilla days were over at day one. =) I like having things my way ;)

Anyway. The plugin is done. Plugin at my site

I’ll add it to the lists soon.


Plugins: ob1_advanced_search 1.032b, ob1_search_score 1.0, ob1_pagination 2.5, ob1_title 4.1, ob1_modified 2.1

“Let your plans be dark and as impenetratable as night, and when you move, fall like a thunderbolt.”
— Sun Tzu

Offline

#8 2004-09-10 01:54:50

michaelkpate
Moderator
From: Avon Park, FL
Registered: 2004-02-24
Posts: 1,379
Website GitHub Mastodon

Re: Request: Last mod. time

When the Heartland Library Cooperative was running on Movable Type, I used this code to indicate when the site was last rebuilt:

Updated on <MTEntries lastn="1"><$MTEntryDate format="%B "$><MTth><$MTEntryDate format="%e, "$></MTth><$MTEntryDate format="%Y"$></MTEntries>

Under TXP, I simplified it down to:

Updated <txp:article form="Date" limit="1" />

The Date form contains:

bc.<txp:posted />

I realize this didn’t answer the question, but it might come in handy for someone later.

Last edited by michaelkpate (2004-09-10 01:58:00)

Offline

Board footer

Powered by FluxBB