help to better help you:

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

Frontend events list layout

Frontend events list layout

4 years 11 months ago
#28248
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

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

Re: Frontend events list layout

4 years 11 months ago
#28250
The space depends on the table in the settings, give the previous column a bigger %.
The following user(s) said Thank You: MSpina

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

Re: Frontend events list layout

4 years 11 months ago
#28251
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?

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

Re: Frontend events list layout

4 years 11 months ago - 4 years 11 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
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)

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!
Last edit: 4 years 11 months ago by jojo12.
The following user(s) said Thank You: MSpina

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

Re: Frontend events list layout

4 years 11 months ago
#28256
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.

Time to create page: 0.545 seconds