Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2004-04-07 17:03:08

thekolonel
Archived Plugin Author
From: NYC
Registered: 2004-03-01
Posts: 28
Website

Browsing by date plugin

A few people have emailed me about this so I’ll update all of you here. I’m hoping to complete version 1.0b today. No guarantees though, because I’m running a bit of a fever and my brain has gone to mush. The plugin includes a new article tag that works just like the standard one except that it automatically filters articles by year, month, & day. I’ve also implemented a month-list tag and a nested month-list tag. Both tags let you filter by section and/or category (or simply let the context decide what should be displayed).

Breadcrumbs, previous/next date item navigation tags, date tags in article forms with individually clickable year, month, day elements, detailed clean urls and a few other goodies are on the way. I should have my site up by this weekend so you can see all this stuff in action.

Offline

#2 2004-04-07 18:12:48

Sho
Member
From: Berlin, Germany
Registered: 2004-03-08
Posts: 15

Re: Browsing by date plugin

Really cool. Gotta combine that with mod_rewrite to enable fancy date URLs, then I’m all set.

Offline

#3 2004-04-12 00:57:19

thekolonel
Archived Plugin Author
From: NYC
Registered: 2004-03-01
Posts: 28
Website

Re: Browsing by date plugin

Okay, the date aware plugin is ready. Grab a copy at http://www.nakedloftparty.com/txp_plugins/. This plugin works with g118a. Please note that internationalized month names are not yet supported.

The functionality has been extensively tested from g116 to g117b but there may be some quirks due to the plugin conversion and configurations I’m not running. Let me know if you observe any strange behavior.

Offline

#4 2004-04-12 02:32:39

thekolonel
Archived Plugin Author
From: NYC
Registered: 2004-03-01
Posts: 28
Website

Re: Browsing by date plugin

Quick update: I changed the validation code to use the new prefix-safe queries.

Offline

#5 2004-04-13 19:15:55

rayne
Member
From: AL USA
Registered: 2004-03-24
Posts: 58
Website

Re: Browsing by date plugin

I’d like to do something like what is found here: http://wifetalks.com/archives/

Last edited by rayne (2004-04-13 19:16:26)


Rayne
mama love

Offline

#6 2004-04-13 20:48:14

thekolonel
Archived Plugin Author
From: NYC
Registered: 2004-03-01
Posts: 28
Website

Re: Browsing by date plugin

swills, the code validates for me under XHTML 1.0 Strict and Transitional. Are you using some other DOCTYPE?

I’m probably not going to do anything with calendars, as I have other date access tools (previous/next date item) that eliminate the need for them.

rayne, my archive list does one better than the site you linked. Each of the date elements is clickable and brings you to a more detailed view. Look for this in a week or so.

Offline

#7 2004-04-13 21:57:11

thekolonel
Archived Plugin Author
From: NYC
Registered: 2004-03-01
Posts: 28
Website

Re: Browsing by date plugin

Just posted a fix to the code. The urls should validate now. I was running under my own clean url mode and thus didnt see the validation errors.

Offline

#8 2004-04-13 22:05:20

rayne
Member
From: AL USA
Registered: 2004-03-24
Posts: 58
Website

Re: Browsing by date plugin

So you mean something like this: http://www.1976design.com/blog/archive


Rayne
mama love

Offline

#9 2004-04-14 05:05:44

thekolonel
Archived Plugin Author
From: NYC
Registered: 2004-03-01
Posts: 28
Website

Re: Browsing by date plugin

Yup.

Offline

#10 2004-05-13 19:46:24

thekolonel
Archived Plugin Author
From: NYC
Registered: 2004-03-01
Posts: 28
Website

Re: Browsing by date plugin

FYI: I’m waiting on the next release of TXP to finish the plugins for the remainder of the date-related functionality I’ve implemented on my site. Clean date-based urls and date-based archives will be at the top of my list.

Offline

#11 2004-05-15 07:03:57

starzabove
Member
Registered: 2004-04-13
Posts: 76

Re: Browsing by date plugin

“<.txp:akw_article_custom. /> accepts year, month and day parameters of the form YYYY, MM and DD. Parameters may be omitted from right to left.”

Could you explain more how to use this tag? I’m just not ‘getting it’ for some reason.

Thanks so much for this plugin!

Last edited by starzabove (2004-05-15 07:04:32)


90+ Textpattern installs and still going…

Offline

#12 2004-05-18 18:18:44

Remillard
Plugin Author
From: Lenexa, KS
Registered: 2004-05-16
Posts: 169

Re: Browsing by date plugin

I have to admit, I’m a bit puzzled on this one as well. I’m sort of used to the “Archives by Month” where each link refers to another page with the listed posts for that month. This though will do what I need essentially, and I like the format I saw at thekolonel’s website and the one rayne posted above.

Anyhow, the problem is syntax as far as I can tell. Say I would like to make a section that is a full archive list similar to what’s on Naked Loft Party:
Year – Month article (date)<br> article (date)<br>
….

What would the syntax for something like this be?

Regards,
Remillard

Last edited by Remillard (2004-05-18 18:44:45)

Offline

#13 2004-05-18 20:58:53

thekolonel
Archived Plugin Author
From: NYC
Registered: 2004-03-01
Posts: 28
Website

Re: Browsing by date plugin

<code>akw_article_custom</code> works just like <code>article_custom</code> with the added ability to accept <code>year</code>, <code>month</code> and <code>day</code> parameters. It boils down to more detailed date inputs… thats all. So you could output all posts in 2004, or January 2004, or January 3 2004, for example.

Rem, the <code>month_list</code> tags are used to pass date parameters to archive sections. <code>akw_article_date_aware</code> then reads the date parameters via the url and outputs the specified articles. I generate the list of posts on my journal page using a special archive tag that I plan to release once TXP 1.19 is out.

You may use the <code>sec</code> parameter to point the month links to any section you wish. You could place this tag on your main page and have the links point to your archive section if that’s the behavior you’re looking for. Just make sure the target section uses <code>akw_article_date_aware</code>.

Offline

#14 2004-05-24 18:48:22

jayaqt
Member
From: Phils
Registered: 2004-05-13
Posts: 11
Website

Re: Browsing by date plugin

i wonder why it isn’t working for me?
tried this just to show the months:
<txp:akw_month_list />

and clicking each month shows the same month= the current, may.


I see the moon, and the moon sees me.
God bless the moon, and God bless me.

Offline

Board footer

Powered by FluxBB