help to better help you:

Please: add always Joomla / JEM version and details to your posts, so we can try to reproduce your issue!

Feature requests for JEM 2.0 - initial public release

Option to list all events from a category (archiving & normal)

Option to list all events from a category (archiving & normal)

10 years 7 months ago
#13664
Hi,

it would be nice to have an option to bypass the archiving function for a menu entry.

I want to have the option to list all events from a specific category including the archived ones.

Thanks and keep up the good work :)

Please Log in or Create an account to join the conversation.

Re: Option to list all events from a category (archiving & normal)

10 years 7 months ago
#13679
thx Kicr,.

maybe it's something to add in the future, who knows B)


But if you know a bit about php you could adapt the files to make use of it before it will be added as feature.

just thinking:
as you're mentioning a specific category then i guess you're talking about the menu-item "single category". and basicly you want an option with normal/both.

- both will display archived+normal on the same page, in this case the archive button can be gone as it's not needed.
- normal will display archived+normal on a different selection (by pressing button)


and just an example of how it can be done, but it probably has to be adapted some more.


default.xml
File: components/com_jem/views/category/tmpl/default.xml
Code:
<field name="filterDisplayEvents" type="radio" default="0" label="COM_JEM_FIELD_FILTER_DISPLAY_EVENTS" description="COM_JEM_FIELD_FILTER_DISPLAY_EVENTS_DESC" > <option value="0">NORMAL</option> <option value="1">BOTH</option> </field>


category.php
File: components/com_jem/models/category.php
Function: _buildCategoryWhere
Code:
if ($params->get('filterDisplayEvents')) { $where[] = ' (a.published = 1 OR a.published = 2)'; } else { // First thing we need to do is to select only needed events if ($task == 'archive') { $where[] = ' a.published = 2'; } else { $where[] = ' a.published = 1'; } }


default.php
File: components/com_jem/views/category/tmpl/default.php
Code:
if (!$this->params->get('filterDisplayEvents')) { echo JemOutput::archivebutton($this->params, $this->task, $this->category->slug); }


Greetings,
Bluefox

Please Log in or Create an account to join the conversation.

Re: Option to list all events from a category (archiving & normal)

10 years 1 month ago
#15691
Thanks Bluefox for your reply. As JEM 3 is in development, could this feature be added?

Or could the plugin ( www.joomlaeventmanager.net/forum/16-el-3rd-party/8004-list-event-in-article ) be an option to list events from a category and ignore the archived state?

Please Log in or Create an account to join the conversation.

Re: Option to list all events from a category (archiving & normal)

10 years 1 month ago
#15692
And I think it would also make sense to have an additional button in the Event list that allows us to show all (normal and archived) events in the list.

Regards,
Frank

Please Log in or Create an account to join the conversation.

Re: Option to list all events from a category (archiving & normal)

10 years 1 month ago
#15695
@kicr
As JEM 3 is in development, could this feature be added?
if it would up to me then yeah it could but not sure if it will be added this year. and will take a look at the option Franklin mentioned.
The following user(s) said Thank You: kicr

Please Log in or Create an account to join the conversation.

Re: Option to list all events from a category (archiving & normal)

10 years 1 week ago
#16139
I know you have been working a lot on bringing a stable JEM3 version, but any chance that this option will be added soon? ;)

Please Log in or Create an account to join the conversation.

Time to create page: 0.615 seconds