help to better help you:
Please: add always Joomla / JEM version and details to your posts, so we can try to reproduce your issue!
Module basic - number of attendees
Module basic - number of attendees
7 years 7 months ago - 7 years 7 months ago
Module basic - how to display the number of registered attendees? Has anyone solved how?
Last edit: 7 years 7 months ago by Kralyk.
Please Log in or Create an account to join the conversation.
Re: Module basic - number of attendees
7 years 7 months ago
Hi,
[loud thinking]
the normal way is to click on the wanted event, then you get all needed informations.
Why trying to give all informations in the module?
[loud thinking]
the normal way is to click on the wanted event, then you get all needed informations.
Why trying to give all informations in the module?
Please Log in or Create an account to join the conversation.
Re: Module basic - number of attendees
7 years 7 months ago
Hi Jojo12
Because I have a module on the main page of the site and it would be available quickly benefit from fast information for potential participants in the event. This way must also click and scroll down events .... "extra work ..." -
It is my experience from the operation of JEM admin on our club.
Because I have a module on the main page of the site and it would be available quickly benefit from fast information for potential participants in the event. This way must also click and scroll down events .... "extra work ..." -
It is my experience from the operation of JEM admin on our club.
Please Log in or Create an account to join the conversation.
Re: Module basic - number of attendees
7 years 7 months ago
I can't really help you. Surely you have to add in helper.php more queries, because attendees are in an other db table
Please Log in or Create an account to join the conversation.
Re: Module basic - number of attendees
7 years 7 months ago - 7 years 7 months ago
JoomlaRoot/modules/mod_jem/helper.php:
Add the following row after line 129:
Now the item where the view iterates through has a new property called attendees. We can use it in the view of the module.
JoomlaRoot/modules/mod_jem/tmpl/default.php:
Add the following line to get the numer of attendees where you want, but in the inner of the foreach loop:
I recommend to override the view in you templates html folder. How? Copy the default.php to templates/yourTemplate/html/mod_jem/default.php that now will be used as override.
I tested it but didn't have events with attendees. So maybe the 0 will always be shown. Then I can't help you anymore.
Add the following row after line 129:
Code:
$lists[$i]->attendees = $row->regCount;
JoomlaRoot/modules/mod_jem/tmpl/default.php:
Add the following line to get the numer of attendees where you want, but in the inner of the foreach loop:
Code:
<?php echo $item->attendees; ?>
I recommend to override the view in you templates html folder. How? Copy the default.php to templates/yourTemplate/html/mod_jem/default.php that now will be used as override.
I tested it but didn't have events with attendees. So maybe the 0 will always be shown. Then I can't help you anymore.
Last edit: 7 years 7 months ago by Egnarts.
Please Log in or Create an account to join the conversation.
Re: Module basic - number of attendees
7 years 7 months agoPlease Log in or Create an account to join the conversation.
Time to create page: 0.475 seconds