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

TOPIC:

Frontend events list layout 1 year 10 months ago #28248

  • MSpina
  • MSpina's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 10
  • 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 10 months ago #28250

  • jojo12
  • jojo12's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 3535
  • Thank you received: 400
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.

Frontend events list layout 1 year 10 months ago #28251

  • MSpina
  • MSpina's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 10
  • 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 10 months ago #28252

  • jojo12
  • jojo12's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 3535
  • Thank you received: 400
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!
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 10 months ago #28256

  • MSpina
  • MSpina's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 10
  • 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.482 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......