Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-12-01 02:33:28

cpalmieri
Member
From: Tokyo
Registered: 2004-06-29
Posts: 11
Website

Archive by Month + forms

I am building a schedule for a bar’s website, using suparchive (to allow publishing of articles with future posted dates).

I’ve run into a problem because suparchive disables a lot of its date handling features if you use forms.

The layout of the schedule page however, requires forms and some pretty fancy date handling. Specifically, I have a month at the beginning (in it’s own styled div), with the events in that month following.

e.g.
December
Event Name : 11th Saturday
Event Name : 18th Saturday
Event Name : 25th Saturday

January
Event Name : 1th Saturday
Event Name : 8th Saturday

Static version of page in question
Static Archive (showing multiple months)

(The site is in Japanese, but basically
  • months are shown in red circles on left
  • dates next in blue (with day of the week underneath in grey)
  • entry on right

If this looks like it is going to require some custom php coding, and anyone is available and interested, please email me an estimate at chris [at] iixii [dot] net

Thank you!

Offline

#2 2005-12-02 06:59:57

cpalmieri
Member
From: Tokyo
Registered: 2004-06-29
Posts: 11
Website

Re: Archive by Month + forms

I’m realizing there are other plugins that also do this kind of thing, but nothing that’s an exact match.

If anyone might be available to do a modification or something custom, that would be wonderful. As mentioned above, I can pay you.

Offline

#3 2005-12-02 07:52:08

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Archive by Month + forms

Would my archives be something like what you want. Posted dates could be added as well, I just don’t need them. This is pure TXP. No plug-ins were harmed at all.


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#4 2005-12-02 07:59:53

cpalmieri
Member
From: Tokyo
Registered: 2004-06-29
Posts: 11
Website

Re: Archive by Month + forms

it looks quite close! The only thing i can think of is that i need this to work for events with a posted date set in the future.

Offline

#5 2005-12-02 08:02:08

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Archive by Month + forms

Let me set up a future post and see if it gets picked up.


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#6 2005-12-02 08:11:11

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Archive by Month + forms

No. It’s not seeing it. Sorry. This method won’t work for you.


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#7 2005-12-02 08:12:42

cpalmieri
Member
From: Tokyo
Registered: 2004-06-29
Posts: 11
Website

Re: Archive by Month + forms

it’s so close :…(

thanks for checking.

is there any easy way to hack txp to handle future posts?

Offline

#8 2005-12-02 08:19:11

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Archive by Month + forms

It handles them but in my case the <code><txp:if_different></code> tag isn’t seeing them. It might be simpler to try and hack the rss_suparchive plug-in. I’m not sure why the date handling functions can’t be used with forms but it’s been a while since I used it. I’ll install it and look at the code, see if it’s simple. I’m no coder though so it does have to be simple. ;) I’ll get back if I find anything.


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#9 2005-12-02 08:21:45

cpalmieri
Member
From: Tokyo
Registered: 2004-06-29
Posts: 11
Website

Re: Archive by Month + forms

Thanks Stuart, I appreciate your help!

From what I know of TxP, it won’t display posts with dates set in the future. Am I mistaken?

Offline

#10 2005-12-02 08:35:41

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Archive by Month + forms

That’s normally the case though I have a feeling it’s all down to “permissions” set for the article when you publish it. I’m going to email you with what I now know about “rss_suparchive” as I don’t want all this code in the thread.

EDIT

Sent. Let me know how you get on.

Last edited by thebombsite (2005-12-02 08:47:19)


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#11 2005-12-03 15:16:13

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Archive by Month + forms

Apparently you can use the attribute – time=“future” – with the article_custom tag so my version of archives could do future events.


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#12 2005-12-20 15:54:18

Marco70
New Member
Registered: 2005-05-12
Posts: 4

Re: Archive by Month + forms

> thebombsite wrote:

> Would my archives be something like what you want. Posted dates could be added as well, I just don’t need them. This is pure TXP. No plug-ins were harmed at all.

I am very interested in how you did this. Are the years also automatically generated?

Offline

Board footer

Powered by FluxBB