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

TOPIC:

Frontend events list layout 1 year 2 months ago #28248

  • MSpina
  • MSpina's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 9
  • Thank you received: 2
Hi everybody, I would like to modify the layout of the events list as it appears in the frontend (Protostar template).
As a minimum, I need to put some space before the category and the attendees number and, most of all, I need to add the number of the max number of attendees, just like in the backend events list view (e. g. 2/5). See the attachment for the sake of clarity.
Is there anyone who can help?
Many thanks in advance!
Marco
Attachments:

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

Frontend events list layout 1 year 2 months ago #28250

The space depends on the table in the settings, give the previous column a bigger %.
on JEM 2.3.3 stable in latest Joomla (3.10.2) Protostar php7.4.15
Personally I use t4_B5 template with t4_system plugin framework with bootstrap 5 and fontawesome)
(I prefer free "Signal" or paid "Threema" instead of "Whatsapp".)
The following user(s) said Thank You: MSpina

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

Frontend events list layout 1 year 2 months ago #28251

  • MSpina
  • MSpina's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 9
  • Thank you received: 2
Many thanks Jojo, working on the columns % in the table in the setting the layout is much better; now, how can I add the max # of attendees?

Attachments:

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

Frontend events list layout 1 year 2 months ago #28252

Search in this forum for "max place in event title"

look in common/views/tmpl for default_jem_eventslist.php (and in your case for default_jem_eventlist_small.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)

you better make an template override!

(but if you don't set a maxplace, there will be 1 / 0, This will say 1 attendee with no limit!
on JEM 2.3.3 stable in latest Joomla (3.10.2) Protostar php7.4.15
Personally I use t4_B5 template with t4_system plugin framework with bootstrap 5 and fontawesome)
(I prefer free "Signal" or paid "Threema" instead of "Whatsapp".)
The following user(s) said Thank You: MSpina

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

Last edit: by jojo12.

Frontend events list layout 1 year 2 months ago #28256

  • MSpina
  • MSpina's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 9
  • Thank you received: 2

Search in this forum for "max place in event title


You great!

I got exactly what I need, thanks.

Marco
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.414 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......