Including the name of the event in the Registrants List

  • abarrow
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
3 years 4 months ago #148525 by abarrow
Hi,
Is there any way to include the name of the event in the Registrants List title? I'm happy to modify a little PHP if I have to.

Andy

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

More
3 years 4 months ago #148534 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Including the name of the event in the Registrants List
Hi Andy

That page display registrants list of an event, so we do not display the name of event there. If you want to have name displayed, there are two options:

1. Go to Events Booking -> Translation, find the language item EB_REGISTRANT_LIST, change it, include [EVENT_TITLE] tag to have event title displayed in the heading

2. Or if you want to have it displayed for every record, you can edit code in the file com_eventbooking/site/themes/default/registrantlist/default.php . Just use this code to display event title:
Code:
echo $this->event->title;

Once the modification is done, move that modified file to PATH_TO_TEMPLATE/html/com_eventbooking/registrantlist folder so that the change won't be lost when you update to future releases of the extension

Regards,

Tuan

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

  • abarrow
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
3 years 4 months ago #148538 by abarrow
Works perfectly, thanks.

While I was there, I added another translation called REGISTRANTCOUNT_TITLE and used that variable instead of the "NUM" that is now hard coded in default.php for the first column of the registrant list. I wanted to use the "#" character as the title of that column, as it takes up less space and I think looks better.

Thanks again.

Andy

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

More
3 years 4 months ago #148540 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Including the name of the event in the Registrants List
OK Andy. I'm glad you were able to make it works for you perfectly

Tuan

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

Moderators: Tuan Pham Ngoc