Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
list of dates that expire without plugin use
hello all,
i was searching the forum entries but couldn’t get a grasp yet:
How could i make a list of dates in textpattern, that would expire from the list automatically when they are over?
I am running a small musician’s site and need a solution to automate the display of live dates.
Thanx for ANY hint in advance, really.
Last edited by jayrope (2006-08-21 12:42:41)
A hole turned upside down is a dome, when there’s also gravity.
Offline
Re: list of dates that expire without plugin use
You can use the time=”“ parameter to list articles differently, e.g. you can list articles according to time=“future” and all articles from the present or past will automatically no longer be listed (and time=“past” for an archive of events). That’s fine for 1-day events. The only problem I came up against was that today’s event disappears from the upcoming events (workaround: display today’s events somewhere else on the page). You can also list via month, week and day – see zem’s article for more infos.
You can also take a look at the jmc_event_manager plug-in – that may solve all your needs and more.
TXP Builders – finely-crafted code, design and txp
Offline
Re: list of dates that expire without plugin use
very helpful, Jakob, muchas gracias!
A hole turned upside down is a dome, when there’s also gravity.
Offline
Re: list of dates that expire without plugin use
You might want to take a look at this too
Last edited by colak (2006-08-20 14:48:00)
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: list of dates that expire without plugin use
jakob wrote:
You can use the time=”“ parameter to list articles differently, e.g. you can list articles according to time=“future” and all articles from the present or past will automatically no longer be listed (and time=“past” for an archive of events). That’s fine for 1-day events. The only problem I came up against was that today’s event disappears from the upcoming events (workaround: display today’s events somewhere else on the page).
that was very useful. It’s all possible without plugins.
I made an article form called live_single with this code
<code>
<li>
<txp:if_different>
<txp:posted format=”%d.%b” /><br />
</txp:if_different>
<txp:permlink><txp:title /></txp:permlink>
</li>
</code>
this form i called from a side bar navigation with this code
<code>
<txp:article_custom form=“live_single” limit=“5” category=“live-date” sortby=“Posted” sortdir=“asc” listform=“live_single” time=“future” />
</code>
the i made a bunch of test articles, each containing all necessary basic information in the article title, with their publishing date set to the date & time of the show accordingly aswell as the category “live-date” assigned.
Find the most recent test version of this here, on the bottom of the left sidebar
Muchas gracias! i might come back and deliver a more advanced solution including listings separated for artists, locations etc.
Last edited by jayrope (2006-08-21 12:41:44)
A hole turned upside down is a dome, when there’s also gravity.
Offline