Page 1 of 1
how to link photo to go to an article
Posted: 11 May 2015, 03:26
by nicecap
Hello guys,
I have a gallery showing group members. Instead of getting a Popup when I click on one of the photos the article with the member information should be displayed in the content area. So, no popup, slideshow or whatever, just one of my articles to come up. Where can I declare this link to a photo.
Thanks for any help.
Chris
Re: how to link photo to go to an article
Posted: 14 May 2015, 00:47
by Jan
Hi, you can set "external link" e.g. to your article, see:
https://www.phoca.cz/joomla-templates (demo, download).
Jan
Re: how to link photo to go to an article
Posted: 25 May 2015, 03:31
by nicecap
Hi Jan,
thank you so much for answering.
Alone - the external link did not help.
In Firebug I still can see that the <a> tag on my image in Phocagallery is handled with an onclick to a window.open with a larger version of the image.
I declared a working link to an article in the external link section of this image, gave it a title and set the icon option to yes. But Phocagallery stills ignores this link and comes up with the Popup. To make sure my link isn't the reason I tried
www.google.com - the same.
In the option the Detail View settings I tried NoPopup which did not help too.
Where do I go wrong?
Best.
Chris
Re: how to link photo to go to an article
Posted: 27 May 2015, 12:15
by Jan
Hi, it depends on javascript popup library how it handles the links
The links are standard but e.g. if they include "rel" parameter, javascript function of the popup method will recognize it and do the link to popup instead of stadard link. Mostly javascript popup methods use the rel attribute, so such needs to be removed.
Jan
Re: how to link photo to go to an article
Posted: 30 May 2015, 19:41
by nicecap
ok - but where to remove the "rel" parameter?
There are a lot of "rel" paramteters in the .js files under com_phocagallery/assets but these are phocagallery files which might be overwritten with an update. Is there a configuration file where I could control theses parameters. I could not find anything like this in the phocagallery backend.
Chris

Re: how to link photo to go to an article
Posted: 03 Jun 2015, 13:06
by Jan
Hi, the rel parameter you should remove in php code (html output) not in javascript and it depends in which part you want to remove it, e.g. if in category view, then see:
components/com_phocagallery/views/category/tmpl/default_images.php (default.php), etc.
Jan
Re: how to link photo to go to an article
Posted: 04 Jun 2015, 07:02
by nicecap
Hey Jan,
I want to have a link to an article for each image in a category view.
You can see the category view here: pbn [dot] neis-friends [dot] com
I've checked the PHPs - there is no rel paramter I could remove - at least I did not find one.
Maybe it helps to show the code I have in the article where I call the category view:
Code: Select all
{phocagallery
view=category|categoryid=2|
imageid=0|limitstart=1|limitcount=10|imageordering=9|
fontcolor=#B88A00|bgcolor=#DFDFDF|bgcolorhover=#BFFF00|imagebgcolor=#FFD24D|
bordercolor=#B88A00|bordercolorhover=#86B300|
detail=3|displayname=1|displaydetail=0|displaydownload=0|float=left
}
Thanks for your effort.
Chris
Re: how to link photo to go to an article
Posted: 08 Jun 2015, 11:06
by Jan
Hi, there are different views: Category view and plugin?
If you are using plugin, you need to see the plugin code:
plugins/phocagallery/phocagallery.php
Jan