Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: [archived] ob1_modified
Updated to v2.1, see first post for links.
v2.1 [2007-10-06]
Code
- Re-wrote SQL to now get all the data in just one query (with joins)
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
Re: [archived] ob1_modified
Henrik, in the 4.0.x branch (what is to become 4.0.6) $thisarticle[‘modified’] exists. Might save a query in your plugin.
Offline
Re: [archived] ob1_modified
Yeah. Anton gave me the heads up on that. But since I couldn’t wait until 4.0.6 was released I sent this one out pre-release.
When 4.0.6 is out that will remove one join in a future release of the plug in.
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
#40 2008-03-27 20:10:43
- Ruhh
- Member
- From: dakota dunes
- Registered: 2008-01-20
- Posts: 305
Re: [archived] ob1_modified
Is there a way to use this plugin outside of article context?
Using the tag in a page gives me an error.
Last edited by Ruhh (2008-03-27 20:11:09)
<txp:Ruhh />
Offline
Re: [archived] ob1_modified
Ruhh wrote:
Is there a way to use this plugin outside of article context?
What would be the semantics of it?… if this says that the article was last modified xxx days ago, it doesn’t seem to make sense outside of an article…
Using the tag in a page gives me an error.
It seems a sensible thing to do.
Mariano Absatz – El Baby
I don’t suffer from insanity. I enjoy every minute of it.
Offline
#42 2008-04-02 03:13:49
- Ruhh
- Member
- From: dakota dunes
- Registered: 2008-01-20
- Posts: 305
Re: [archived] ob1_modified
well, i was trying to use this plugin as in site “last modified” so it would not be used for articles.
i can not find a working download link for a plugin that would show the date on a site being last modified.
<txp:Ruhh />
Offline
Re: [archived] ob1_modified
Ruhh wrote:
well, i was trying to use this plugin as in site “last modified” so it would not be used for articles.
i can not find a working download link for a plugin that would show the date on a site being last modified.
textpattern.org uses that (under the navigation of most every page except the frontpage)..
It’s called like this:
<txp:article_custom limit="1" form="moddate" allowoverride="0" />
moddate form contents:
Content last modified
<txp:ob1_modified format="l j F Y" output="always" />
textpattern.org :: find and share Textpattern resources
docs.textpattern.io :: Textpattern user documentation
Offline
#44 2008-04-02 20:03:10
- Ruhh
- Member
- From: dakota dunes
- Registered: 2008-01-20
- Posts: 305
Re: [archived] ob1_modified
Ok I got it working. Thanks!
<txp:Ruhh />
Offline