Adding event name to registrantlist header?

More
8 years 8 months ago #101440 by Alan
I am looking for the code snippet which would let me display the selected Event Name in the header tag of the "Display Registrants" views.

Source file: view/registrantlist/tmpl/default.php
Line 15 <h1 class="eb_title"><?php echo JText::_('EB_REGISTRANT_LIST'); ?></h1>

Particurly when using the menu option for "Registrants List : displays list of registrants from one event" it would be great to see the event name in the heading.

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

More
8 years 8 months ago #101467 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Adding event name to registrantlist header?
Hi Alan

I just updated the download package on server with small modification to support this. Basically, you can now use [EVENT_TITLE] tag in the language item EB_REGISTRANT_LIST to include title of event

So access to My Downloads menu item, download latest version, upgrade it to your site. Then go to Events Booking -> Translation, find the language item EB_REGISTRANT_LIST , use [EVENT_TITLE] tag in that language item and it should work as expected

Tuan

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

More
8 years 8 months ago #101485 by Alan
Thanks! Works well.

There is a small side effect of this change in the "registrants/ ... / default.php on line 45
<h1 class="eb-page-heading"><?php // echo JText::_('EB_REGISTRANT_LIST'); ?></h1>

I fixed it quickly with an override but by default if you use the front end "Manage Registrants" menu option it displays "[EVENT_TITLE]", should probably say something like "All Events" if no particular event is selected.

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

More
8 years 8 months ago #101486 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Adding event name to registrantlist header?
Ah, didn't remember that I use same message for Manage Registrants Page. Will try to think about it and make correction later. Quite busy at the moment

Tuan

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

Moderators: Tuan Pham Ngoc