help to better help you:

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

How to customize Basic module (Upcoming events)

How to customize Basic module (Upcoming events)

7 years 11 months ago
#23104
Hello everyone!

I have just launched recent version of JEM on a new website.

I would like to do a small customization in the Basic module I use to show few Upcoming events.

By default, it shows for each item:
- 1st row - Date
- 2nd row - Title with link to the event

Screen of current state is in the attachments. Live version on www.pmi.cz


I would like to customize it in the way that each item contains:
- 1st row - Title with link to the event
- 2nd row - Date | Category with link to the category

I am not very experienced with this kind of adjustments. Would any of you be able to advice me in which file I can adjust the template of the module / override it and eventually also how can I get the category name + link there?

Any advise would be much appreciated.

Thank you!
Tomas

Attachments:

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

Re: How to customize Basic module (Upcoming events)

7 years 11 months ago
#23108
your first question is easy to solve:
change in modules/mod_jem/tmpl/default.php the code inside the <li >...</li>
Code:
<li class="jemmod<?php echo $params->get('moduleclass_sfx'); ?>"> <?php if ($params->get('showtitloc') == 0 && $params->get('linkloc') == 1) : ?> <a href="<?php echo $item->venueurl; ?>" class="jemmod<?php echo $params->get('moduleclass_sfx'); ?>"> <?php echo $item->text; ?> </a> <?php elseif ($params->get('showtitloc') == 1 && $params->get('linkdet') == 2) : ?> <a href="<?php echo $item->link; ?>" class="jemmod<?php echo $params->get('moduleclass_sfx'); ?>"> <?php echo $item->text; ?> </a> <?php else : echo $item->text; endif; ?> <br /> <?php if ($params->get('linkdet') == 1) : ?> <a href="<?php echo $item->link; ?>" class="jemmod<?php echo $params->get('moduleclass_sfx'); ?>"> <?php echo $item->dateinfo; ?> </a> <?php else : echo $item->dateinfo; endif; ?> </li>

then you will have it, but better to copy this as override. Then you'll have it even after an update.

The second question is not easy to solve:
the category and venue is not asked in the helper file. So they can not be shown. There should be something changed in this flle.

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

Time to create page: 0.433 seconds