Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-08-20 10:18:14

jayrope
Plugin Author
From: Berlin
Registered: 2006-07-06
Posts: 700
Website Mastodon

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

#2 2006-08-20 12:21:51

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 5,125
Website GitHub

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

#3 2006-08-20 12:32:07

jayrope
Plugin Author
From: Berlin
Registered: 2006-07-06
Posts: 700
Website Mastodon

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

#4 2006-08-20 14:47:41

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,350
Website GitHub Mastodon Twitter

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

#5 2006-08-21 12:40:55

jayrope
Plugin Author
From: Berlin
Registered: 2006-07-06
Posts: 700
Website Mastodon

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

Board footer

Powered by FluxBB