Textpattern CMS support forum

You are not logged in. Register | Login | Help

#91 2004-10-27 05:11:23

arakune
Member
Registered: 2004-10-23
Posts: 13

Re: Browsing by date plugin

I must be three kinds of idiots today, because I’m really not getting this.

I’ve been playing with the date_aware and archive plugins, trying to figure out how this all fits together. I think I’ve got a handle on the date_aware plugin. I’m currently using it to create links to daily archive pages, by wrapping the following around <code><txp:posted /></code> inside an article:

<code>
<a nicetitle=“View posts for this day” href=’/index.php?y=<txp:posted format=“Y” />&m=<txp:posted format=“m” />&d=<txp:posted format=“j” />’>
</code>

There may be an easier way to do it, but it works for me, and generally makes things very happy :) Thanks so much for this plugin!

I’m getting stumped on creating an archive page, though. I see where you say to use something like

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

in your page body, which is fine. But obviously, I don’t want to be doing this on my default page. I’d want to create a new “page” for the archive (perhaps even use the “archive” page that’s already there).

But then, how do I link to that archive page from my default page. I have other plugins, which display site nav links in my sidebar (category lists, recent posts, etc.), and they all pull up the default page template. Likewise, permalinks use the default page template….. I presume the archive template exists for just this sort of thing, but see no way of calling it explicitly.

I realize that this is probably more of an TXP question that a plugin question :( but since I’m running into while trying to use the archives plugin, I’m hoping somebody here won’t mind taking a minute to shed some light ;)

Offline

#92 2004-11-03 20:16:07

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

Re: Browsing by date plugin

i did read over the four pages of this thread…
i seem to just not understand…

how do i make the posted dates in an article be linkable to their separate dates?

e.g.:

<a href=“http://thiswouldlinkto_2003-10entries”>October</a> <a href=“http://thiswouldlinkto_2003-10-05entries”>5</a>, <a href=“http://thiswouldlinkto_2003entries”>2003</a>
Article body goes here blah blah

i did look at the plugin description where it’s installed, but it’s actually not clear there even that you have to replace txp:article with txp:akw_article_date_aware…

all that said, this is a very useful plugin for a very extremely terribly useful feature that i’d really like to be using throughout my site! thank you


textpattern.org :: find and share Textpattern resources
docs.textpattern.io :: Textpattern user documentation

Offline

#93 2004-11-03 20:39:17

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

Re: Browsing by date plugin

I assume that since the author of this plugin hasn’t posted here since July, despite there being numerous questions about its use, that development on this plugin is effectively dead.

I would like to implore that somebody with better php skills than myself pick up the ball on this plugin and explain how to use it in a clear and concise manner. In non-programming speak.

Offline

#94 2004-11-03 21:49:03

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

Re: Browsing by date plugin

I myself admit to someone who never quite ever figured this one out. What sort of behavior do people actually want? Something like:
<code><txp:xxx_article_list_by_date month="10" year="2004" form="yyyy" /></code>
And have it spit out all the articles for that month? (And likewise for year, and perhaps day?)

Offline

#95 2004-11-04 00:28:53

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

Re: Browsing by date plugin

Remillard,
yes, that would be very nice also… the archive list that can be broken out/selected via year/month/day is a very cool thing indeed.

you know what else would be cool? having the date on an article be broken out into linkable month-day-year, so that someone can come across that article either randomly from a list of categories or its particular section, and say “hmm.. interesting article. i wonder what else was written that day/month/year” and easily click on that piece of the date accordingly.

:) that would be cool.

but i will very patiently wait for the day.


textpattern.org :: find and share Textpattern resources
docs.textpattern.io :: Textpattern user documentation

Offline

#96 2004-11-04 18:04:07

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

Re: Browsing by date plugin

Don’t worry… development isn’t dead. I was waiting on the release candidate before finishing the plugin work. I will start a new thread inclusive of this, the archive plugin, and any future date-related plugs. Bear with me, as I have some site-related work to do before I’m ready to update the public plugins.

Offline

#97 2004-11-05 19:29:59

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

Re: Browsing by date plugin

To those who are wondering about the day issue, it has something to do with the calculation of time zone. For me I have to use a day ahead to get anything (though I wonder if I got closer to midnight either way if I would start to see some other behaviors.

Anyhow, all posts are stored in the database on the server time, not the timezone corrected time. So when you ask for May 17, 2004, it ought to look for 2004-05-17 00:00:00 – timezone offset, to 2004-05-17 23:59:59 – timezone offset. Either the day request isn’t getting translated right, or the posting time isn’t getting translated right, I’m still fuzzy on that one, but looking into it.

EDIT: Just figured it out I think. It has to do with the checktime function. Basically it converts the time, and applies the timezone offset, but then only returns month, day, and year, when it probably ought to be returning month, day, year, hour, minute, second (to catch the day overlap.)

It will probably also have trouble with daylight savings time (since TXP doesn’t recognize it, and you have to manually change the time zone to account for it.)

To do all this perfectly, things are going to get messy with epoch time, daylight savings, etc. Much thought needed.

Remillard

Last edited by Remillard (2004-11-05 19:37:14)

Offline

#98 2004-11-13 19:59:47

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

Re: Browsing by date plugin

anyone got the fix for this when using the plugin? i remember seeing it here a while ago but can’t find it anymore.

Warning: Missing argument 4 for dopermlink() in /home/…./textpattern/publish.php on line 516


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

Offline

#99 2004-12-03 17:03:28

Yurodivy
New Member
Registered: 2004-10-29
Posts: 9

Re: Browsing by date plugin

I’ve done a thorough search of the forums and still haven’t been able to determine if the bug mentioned in macsepp’s post above (dated 2004-09-02) has been resolved.

Any info would be appreciated. Thanks in advance!

Offline

#100 2005-02-11 04:14:30

misterk
Member
From: Morris, MN
Registered: 2004-02-24
Posts: 77
Website

Re: Browsing by date plugin

@Remillard:

You mentioned earlier you were encountering a bug with links looking like site/section/title, and not site/section/id/title like they should. I’ve got my tags set up right i think, but am having this problem on all the pages except for site/section/?y=2005&m=2&d=10.

I see that on your site you managed to fix it, but don’t see anywhere how you fixed it. What am I doing wrong?

Offline

Board footer

Powered by FluxBB