help to better help you:

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

Active link for modules

Active link for modules

7 years 4 weeks ago
#24515
Is it possible to add an 'active' class to the Basic Module's hyperlinks? It would help to show people which event they are looking at when the module is used on the same page as the event details. See the attachment.

Attachments:

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

Re: Active link for modules

7 years 3 weeks ago
#24520
Hey,
i think this is very complex because the module does not know on which page you are.

But the first solution that would be possible is to use jQuery after loading the complete page.
So you can add some javascript code in the override of event details.
And every time the event details are loaded, the javascript code is executed.

The code could something like that pseudo-code:
Code:
$( document ).ready(function() { $("#jemmodulebasic").find(hyperlink with attribute containing <?php echo $this->item->did; ?>).css("font-weight", "bold"); });

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

Time to create page: 0.400 seconds