[calendar_events_plus] Calendar Events Plus
Hi,
I noticed that people are interested in how to add a field like "location" to the event form at backend so I created my first extension.
Description
This extension adds additional text field "Location", "Participants" and "Contact" to an event at backend, saved data can be outputted at frontend. At backend all fields are available at search menu, so events can be found via location, participants or contact. As well all fields are available at User groups > Allowed fields > tl_calendar_events to grant or deny access.
Instructions
Copy this syntax into a frontend template for displaying events:
Module type: Calendar (cal_default.*)
- <?php echo $event['cep_location']; ?>[/*:m:1scoc62j]
- <?php echo $event['cep_participants']; ?>[/*:m:1scoc62j]
- <?php echo $event['cep_contact']; ?>[/*:m:1scoc62j]
Module type: Event reader, Event list (event_full.*, event_list.*, event_teaser.*, event_upcoming.*)
- <?php echo $this->cep_location; ?>[/*:m:1scoc62j]
- <?php echo $this->cep_participants; ?>[/*:m:1scoc62j]
- <?php echo $this->cep_contact; ?>[/*:m:1scoc62j]
Default Values
The fields at backend can have default values, that means new events have already such a value; the default values can be changed or deleted if necessary. To use default values please copy the following syntax into file /system/config/dcaconfig.php
- $GLOBALS['TL_DCA']['tl_calendar_events']['fields']['cep_location']['default'] = 'Custom value';[/*:m:1scoc62j]
- $GLOBALS['TL_DCA']['tl_calendar_events']['fields']['cep_participants']['default'] = 'Custom value';[/*:m:1scoc62j]
- $GLOBALS['TL_DCA']['tl_calendar_events']['fields']['cep_contact']['default'] = 'Custom value';[/*:m:1scoc62j]
This extension can be found at Contao Extension Repository:
http://www.contao.org/en/extension-list ... _plus.html
I would be happy to get your feedback here.
Changelog:
17.08.2010
Released version 1.0.0 stable.
10.09.2010, Version 1.1.0
Added additional field "Contact".
05.01.2012
Tested and released for Contao 2.10.4
22.04.2012
Tested and released for Contao 2.11.2
Re: [calendar_events_plus] Calendar Events Plus
Just an update, I tested and released calendar_events_plus for Contao 2.10.4
Re: [calendar_events_plus] Calendar Events Plus
Hello,
I first of all, would like to thank you for the extension. I was looking for such functionnality for my website actually developping.
I'm also looking for something more specific.
In the news module of contao, it is possible to set a news as "Vedette" (the "featured" field in tl_news table ). Do you think it could be possible to add this option to your extension ?
I got absolutely no idea on how to develop a proper extension, else, I would apply the changes and send them back to you, but my php developping level is really bad.
Could you tell me how to proceed ?
I also just translated the module to french, perhaps some more people will look for it once it's online.
Once again, thank you for this extension.
p.s.: my english is really bad too...
Re: [calendar_events_plus] Calendar Events Plus
Hi rthreis,
if you like to have an option "Feature item" like it is at news I would suggest to open a feature request at github:
https://github.com/contao/core/issues
In my opinion this would make more sense at core and not in my extension.
But maybe you could use a specific CSS class at the Expert settings section of the event you would like to emphasize - but I know this is not the same functionality like "Feature item" at news.
Re: [calendar_events_plus] Calendar Events Plus
Quote:
Originally Posted by rthreis
I also just translated the module to french, perhaps some more people will look for it once it's online.
Thanks a lot for your translation.
Re: [calendar_events_plus] Calendar Events Plus
Just tested and released this extension for Contao 2.11.2