Textpattern Forum

You are not logged in. Register | Login | Help

#101 2007-02-08 23:44:08

nardo
Member
From: tuvalahiti
Registered: 2004-04-22
Posts: 739

Re: [plugin] [ORPHAN] zem_event [flexible integrated event management]

Opalcat – re: having month appear twice (from calendar and calendar nav tags) … have a look at the generated source code from your web page – use CSS to hide the one you want hidden (display:none) … you can do quite a bit of customisation of the look of it with CSS

Last edited by nardo (2007-02-09 23:35:43)

Offline

#102 2007-02-08 23:48:24

nardo
Member
From: tuvalahiti
Registered: 2004-04-22
Posts: 739

Re: [plugin] [ORPHAN] zem_event [flexible integrated event management]

Offline

#103 2007-02-10 00:50:15

nardo
Member
From: tuvalahiti
Registered: 2004-04-22
Posts: 739

Re: [plugin] [ORPHAN] zem_event [flexible integrated event management]

this is a powerful plugin for any content that is restricted by date – and you could have several content types that benefit from this functionality on a site – e.g. events; employment ads; meeting dates with associated agenda & minutes files; public notices that appear at certain intervals or for a limited time

at the moment zem_event_list ouputs ALL ‘event articles’

feature suggestion – ability to filter ‘event articles’ by section … e.g. <txp:zem_event_list section="employment" form="zem_employment_display" /> or <txp:zem_event_list this_section=1 form="zem_employment_display" />

right now you can call ‘event articles’ within a section from the txp:article tag which filters for the current section -

in /employment page template: <txp:article form="zem_employment_article">

form zem_employment_article contains <txp:zem_article_event> general zem_event tags to format the employment ad </txp:zem_article_event>

just employment ads are output

another workaround might be to give all employment ads an event category of employment then use <txp:zem_event_list category="employment" form="zem_employment_display" />

but this adds employment to the category list on the ‘events’ page

so far so good, but

  1. on the site’s ‘events’ section, the calendar shows employment ads alongside events – maybe calendar tags could also take the section attribute
  2. search results also show ‘article events’ from all sections (employment ads alongside events) but if zem_event_list had a section attribute, that’d allow you to show only ‘employment event articles’ when providing a search tool for that area

Offline

#104 2007-02-10 02:42:27

maniqui
Moderator
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 2,989
Website

Re: [plugin] [ORPHAN] zem_event [flexible integrated event management]

hi nardo.
I haven’t tested this plug-in yet, and I’m not sure if what I’m going to say is right or not:
maybe you can do some magic with txp_if_article_section like:

<txp:if_article_section>
here the tags
<txp:else />
</txp:if_article_section>

Last edited by maniqui (2007-02-10 03:39:09)


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#105 2007-02-10 03:26:22

nardo
Member
From: tuvalahiti
Registered: 2004-04-22
Posts: 739

Re: [plugin] [ORPHAN] zem_event [flexible integrated event management]

that’s a good idea – had some problems with that tag in a form called from zem_event_list, have to investigate further … but realised that for search results, could just use an article tag + searchall=0 to ensure listed events are from the current section

drawback with using the txp:article tag… doesn’t sort the events as well as zem_event_list – sorting on ‘posted’ rather than event time

Offline

#106 2007-02-10 03:44:05

nardo
Member
From: tuvalahiti
Registered: 2004-04-22
Posts: 739

Re: [plugin] [ORPHAN] zem_event [flexible integrated event management]

maniqui – it does work! went back to basics…

on /events page, using <txp:zem_event_list /> calling default form zem_event_display

that form has <txp:if_article_section name="event"> ... zem_event_tags ... <txp:else /></txp:if_article_section>

works great for event lists, event category lists & event search results

PS also takes care of the calendar display – add if_article_section conditional to zem_event_cal_entry form

Last edited by nardo (2007-02-10 03:50:18)

Offline

#107 2007-02-10 03:49:38

maniqui
Moderator
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 2,989
Website

Re: [plugin] [ORPHAN] zem_event [flexible integrated event management]

Good to know it works.
I think that you can even remove the txp:else if you’re using that form just for that article section. But, again, not totally sure!


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#108 2007-02-10 11:16:48

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

Re: [plugin] [ORPHAN] zem_event [flexible integrated event management]

Nardo,
WOuld you still like me to add that as a feature suggestion or is it not needed now?

Opalcat,
did you get the next/prev thing figured out? Its not a hard change in the PHP.

I can make the change in the plugin code, but don’t know how to compile it. Or rather, don’t have time to try to learn now as we just had baby no. 2 and we’re trying to sleep more.

Matthew

Last edited by ma_smith (2007-02-10 11:17:55)


Offline

#109 2007-02-10 14:57:23

WebKat
Member
Registered: 2007-01-16
Posts: 301

Re: [plugin] [ORPHAN] zem_event [flexible integrated event management]

No, I didn’t figure it out.



WebKat

Offline

#110 2007-02-10 15:39:49

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

Re: [plugin] [ORPHAN] zem_event [flexible integrated event management]

OpalCat,
The answer is right here. Its worth reading the thread first :)


Offline

Board footer

Powered by FluxBB