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
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
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
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
and replace it with:
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
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); ?>
Code:
<?php echo $this->escape($row->regCount), " / ", $this->escape($row->maxplaces); ?>
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
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
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
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
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
Modify it in your override to whatever you want. Let us know how you get on.
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
Around line 50 you will find the following code
Code:
<?php echo $this->escape($this->item->title); ?>
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