Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: max-place in the event title

max-place in the event title 7 months 1 day 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.

max-place in the event title 7 months 3 hours ago #26638

  • jojo12
  • jojo12's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 3188
  • Karma: 45
  • Thank you received: 340
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
<?php echo $this->escape($row->regCount); ?>
and replace it with:
<?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
on JEM 2.3.0 stable in latest Joomla (3.9.16) Protostar php7.4.1

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

Last edit: by jojo12.

max-place in the event title 6 months 2 weeks 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.

max-place in the event title 6 months 2 weeks 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.

max-place in the event title 6 months 2 weeks 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_outp...rom_the_Joomla!_core

The files you want to override is located in folder
\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
<?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.

  • Page:
  • 1
Time to create page: 0.227 seconds

Donate

If you find JEM useful and if you use it on your site, please consider a donation to the project.

Private Messages

You are not logged in.

Follow us......