help to better help you:

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

max-place in the event title

max-place in the event title

5 years 3 months ago
#26628
Hi guys
very good project :)
i have a question - if I have in my event 5 places ( for registration ) and all the 5 places are full , I want that something happened in the title ( in calendar view ) like maybe the title will be in red background or something else so the people will know the this event is full , it can be done ? any idea ?
Thanks ,
Kobi

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

Re: max-place in the event title

5 years 3 months ago - 5 years 3 months ago
#26638
I can't help.
But if you display in simplelist the attending column, you can indicate the maxplaces beneath the booked places!
look in default_jem_eventslist.php for
Code:
<?php echo $this->escape($row->regCount); ?>
and replace it with:
Code:
<?php echo $this->escape($row->regCount), " / ", $this->escape($row->maxplaces); ?>
Then everybody can see:
2 / 2 (= 2 places from 2 are booked)

This is from JEM-responsive, but in the normal JEM should be about the same

EDIT: I had to change the code! sorry
Last edit: 5 years 3 months ago by jojo12.

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

Re: max-place in the event title

5 years 3 months ago
#26680
you can override the view with your own (template override) and conditionally modify event title to add " - registration closed" if the registration is not open or " - fully booked" if there are no more spaces left.

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

Re: max-place in the event title

5 years 2 months ago
#26686
its sounds good , but how i do it ? there is any of template override manual ? or if you can just tell me witch file i need to change

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

Re: max-place in the event title

5 years 2 months ago
#26687
This is standard Joomla! functionality, have a search for "joomla template override" or have a look here
docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core

The files you want to override is located in folder
Code:
\components\com_jem\views\event\tmpl
Depending if you are using responsive or not it will be default.php or \responsive\default.php
Around line 50 you will find the following code
Code:
<?php echo $this->escape($this->item->title); ?>
Modify it in your override to whatever you want. Let us know how you get on.
The following user(s) said Thank You: jojo12

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

Time to create page: 0.568 seconds