You are not logged in.
renobird: thanks for the tip!
Is there a way to let user subscribe to events? Maybe a (modified?) comment function?
Why will you need a (modified) comment function? You can do it with the current comment function. Just simple do not display the user comment on the front end and voilà! You have a “subscribe to event” form in the shape of a comment form.
The problem may be the preview…
Yes, the problem may be the preview. And the fact that you can’t have the normal comments for the event PLUS a subscribing form. More than this, it seems like a natural “extension” of an event plugin to have a subscribing capability.
If you want something more “difficult”, you can try with the Postmaster plug-in for subscribing users in a separate database table. You can create one list for each event.
This may be a solution. But the Postmaster has the problem of no customizing mails sent to the users (problem due to ZCR plugin on which it relies). Other than this, if I don’t need to send email, I have to create lists for nothing… a bit clumsy, but viable.
The subscribing issue could be useful in a third scenario, that has nothing to do with zem_event (reason why I also thought of a separate plugin): for online petitions.
But petitions, they could actually be addressed by Postmaster, I suppose.
Need to do some try about it, anyway, to explore existing possibilities. No point to have a plugin for things that can already be accomplished… Thank for your ideas!
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)
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:
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
zem_event_listhad a section attribute, that’d allow you to show only ‘employment event articles’ when providing a search tool for that area
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> 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á
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
maniqui – it does work! went back to basics…
on /events page, using
<txp:zem_event_list /> calling default form
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
Last edited by nardo (2007-02-10 03:50:18)
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á
WOuld you still like me to add that as a feature suggestion or is it not needed now?
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.
Last edited by ma_smith (2007-02-10 11:17:55)