Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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)
- 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
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
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
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
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
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
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
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
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
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
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