1. p.luks
  2. Sherlock Holmes
  3. Commercial Templates
  4. Sunday, 11 December 2016
  5.  Subscribe via email
Hello,

i would like a external link in the grid gallery. we have the madison template.
for this i have create a menu item with external link and selected the menu item in the image.

when i select a menu item with internal link, then is the link correct (http://new.kb-hairdesign.de/about-us.html). But whe i select a menu item with the external link, then is the link incorrect (http://new.kb-hairdesign.de/?Itemid=105).

The links are correct in the main menu.

i have found the similar problems, but don't found a resolving.

where is the problem?
References
  1. http://new.kb-hairdesign.de
Accepted Answer Pending Moderation
0
Votes
Undo
I have found the problem and created a override in my site.

the template-file from the modul (default.php)

Original entry

<a href="/<?php echo JROUTE::_("index.php?Itemid={$image_url[$cur_img]}") ?>" target="<?php echo $target_url[$cur_img]; ?>" >


New entry

<?php
//override - check link-type
$item = JFactory::getApplication()->getMenu()->getItem( $image_url[$cur_img]);
$url = ($item->type == "url" ? $item->link : JROUTE::_("index.php?Itemid={$image_url[$cur_img]}"))
?>
<a href="/<?php echo $url ?>" target="<?php echo $target_url[$cur_img]; ?>" >
Attachments (2)
  1. more than a month ago
  2. Commercial Templates
  3. # 1
Accepted Answer Pending Moderation
0
Votes
Undo
Thank you for sharing your solution! :)

By default our GridGallery module does not handle external URLs. Am alternative solution would be to change this with some small amendments to the GridGallery module as detailed in the following post... https://www.joomla51.com/forum/commercial-templates/renovate-mod-j51gridgallery-link-to-article

CiarĂ¡n
  1. more than a month ago
  2. Commercial Templates
  3. # 2
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!

Join Our Newsletter

* indicates required
We respect your privacy and do not tolerate spam and will never sell, rent, lease or give away your information (name, email, number, etc.) to any third party. Nor will we send you unsolicited email.
Joomla51 - Mullaghmore, Co. Sligo, Ireland
Joomla51.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by
Open Source Matters
the trademark holder in the United States and other countries.

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.

Ok