Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 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

#14 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

#15 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

#16 2004-05-25 02:38:03

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

Re: Browsing by date plugin

Do you have this set up anywhere where I could take a look at it? Also, it would be helpful to know exactly which tag you’re using and what parameters you passed to it.

FYI, it looks like the <code>sec</code> parameter isn’t working properly. I’ll post an update tomorrow.

Offline

#17 2004-05-25 13:52:56

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

Re: Browsing by date plugin

i tested it on txp on my computer, tried this tag:
‘< txp:akw_month_list />

and these months were shown:
May 2004
April 2004
March 2004
February 2004
January 2004

it directs me to the right month, like for example, may: http://localhost/textpattern/?y=2004&m=05

april:
http://localhost/textpattern/?y=2004&m=04

and march:
http://localhost/textpattern/?y=2004&m=03

yet it only takes me to may.i’ll be waiting for the update.thanks!

Last edited by jayaqt (2004-05-25 18:50:02)


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

Offline

#18 2004-05-25 18:36:49

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

Re: Browsing by date plugin

jayagt, have you replaced the <code><txp:article /></code> tag with <code><txp:akw_article_date_aware /></code>?

Offline

#19 2004-05-25 18:53:16

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

Re: Browsing by date plugin

whoopsie, missed that, sorry. works flawlessly now! :)


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

Offline

#20 2004-06-07 20:16:40

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

Re: Browsing by date plugin

Rem, the month_list tags are used to pass date parameters to archive sections. akw_article_date_aware 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.

Do you know when this portion of the plugin might be ready now that 1.19 is released?

Regards,
Remillard

Offline

#21 2004-06-08 17:34:07

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

Re: Browsing by date plugin

I need to take a look at 1.19 today.

Offline

#22 2004-06-09 14:39:11

tinyfly
Member
From: Dallas, Texas
Registered: 2004-05-10
Posts: 462
Website

Re: Browsing by date plugin

thekolonel,
I am confused as how to use this set of tags? Can you give an example of where I need to put the tags to get a page like your Journal section.

Like where do I put <code><txp:akw_article_date_aware /></code> (from reading these posts I think it is mandatory).

thanks

Offline

#23 2004-06-12 05:07:36

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

Re: Browsing by date plugin

New version available for g119. The section and category parameters now work properly. Grab a copy at http://www.nakedloftparty.com/txp_plugins/. I’m still in the process of migrating to g119 so let me know if there are any glitches and I’ll get on em immediately.

Offline

#24 2004-06-12 07:21:22

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

Re: Browsing by date plugin

tiny,

Here’s what I have on my journal page. This is in the sidebar:

<code><txp:akw_nested_month_list yearul=“year-list” yearli=“year” monthul=“month-list” monthli=“month” yearprefix=“Post titles for” monthprefix=“Excerpts for” /></code>

And then this in the body (from my new archive list plugin):

<code><txp:archive limit=“1000” lowform=“entry_list” medform=“entry_excerpt” form=“entry_full” headwrap=“h3” daywrapclass=“day-list” dayitemclass=“day” postwrapclass=“post-list” /></code>

If you don’t need the archive list tag, you can also use this in the body:

<code><txp:akw_article_date_aware /></code>

(If you manually enter ../default/2003 into the url on my front page you’ll see the automatic filtering in action. I could’ve added a list of months there too.)

You can use <code><txp:akw_article_date_aware /></code> anywhere you’d use <code><txp:article /></code>. It works hand-in-hand with the month-list tags.

TK

PS — check out this site. She’s got it working on her front page.

Last edited by thekolonel (2004-06-12 07:28:40)

Offline

Board footer

Powered by FluxBB