Mini K2 link to item not opening in modal window
- Posted by Willem (2) Offline
I'd like to open the K2 item/article in a lightbox/modal window.
In /modules/mod_minik2/tmpl/portfolio/default.php I changed <a href="<?php echo $item->link; ?>">
to <a class="modal" rel="{handler: 'iframe', size: {x: 800, y: 500}}" href="<?php echo $item->link; ?>">
but to no avail.
Problem is when you click in the miniK2 portfolio on the (K2) item image you get to the K2 item page and then it's difficult to get back to the miniK2 portfolio. Hence i want the K2 item/article to open in a lightbox.
Thank you so much for any help.
11 years 1 week ago #1
by Willem
In /modules/mod_minik2/tmpl/portfolio/default.php I changed <a href="<?php echo $item->link; ?>">
to <a class="modal" rel="{handler: 'iframe', size: {x: 800, y: 500}}" href="<?php echo $item->link; ?>">
but to no avail.
Problem is when you click in the miniK2 portfolio on the (K2) item image you get to the K2 item page and then it's difficult to get back to the miniK2 portfolio. Hence i want the K2 item/article to open in a lightbox.
Thank you so much for any help.
Please Log in or Create an account to join the conversation.
- Posted by TemplatePlazza (5310) Offline
- Posted by Willem (2) Offline
Hey, thanks!
Here's the link : new.archidomus.be/index.php/projecten
11 years 1 week ago #3
by Willem
Here's the link : new.archidomus.be/index.php/projecten
Please Log in or Create an account to join the conversation.
- Posted by TemplatePlazza (5310) Offline
Hmm,
1. Have you added the code JHTML::_('behavior.modal'); in the php file?
2. Can you try to switch the template to the default joomla template (beez)? To check whether this is a template problem or something else
11 years 1 week ago #4
by TemplatePlazza
1. Have you added the code JHTML::_('behavior.modal'); in the php file?
2. Can you try to switch the template to the default joomla template (beez)? To check whether this is a template problem or something else
Please Log in or Create an account to join the conversation.