Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » Archives
  3. » [archived] ob1_modified

#37 2007-10-05 22:31:01

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

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

#38 2007-10-06 09:25:46

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

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

#39 2007-10-06 12:58:29

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

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

#41 2008-03-29 20:29:16

baby
Plugin Author
From: Buenos Aires, Argentina
Registered: 2005-10-16
Posts: 95
Website

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 AbsatzEl 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

#43 2008-04-02 14:59:43

alicson
Member
Registered: 2004-05-26
Posts: 465
Website

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

  1. Index
  2. » Archives
  3. » [archived] ob1_modified

Board footer

Powered by FluxBB