Page 1 of 1
link to gallery (category) in article
Posted: 07 Apr 2012, 16:40
by ElviraKate
How do I put a link within an article to one of my category galleries? Apologies for such a simple question but I can't find any clues in the article editor and I can't search this forum because the search window won't let me write in English! It seems stuck on non-latin alphabets.
Kate
Re: link to gallery (category) in article
Posted: 07 Apr 2012, 18:30
by Benno
Hi,
if you only need a text link, simply open the category in fontend and copy the path from your browser.
Paste the link in your article like this:
http://www.reisefotografien.eu/reisefot ... 86-england
If you want to have images of this category in your artikle, use Phoca Gallery Plugin:
https://www.phoca.cz/download/category/ ... ery-plugin
To create valid code for Phoca Gallery Plugin it's helpful to install Phoca Gallery Button Plugin too:
https://www.phoca.cz/download/category/ ... ton-plugin
Kind regards,
Benno
Re: link to gallery (category) in article
Posted: 12 May 2016, 12:17
by svArtist
This seems like really bad practice. Although the gallery name is omissible and thus flexible with change, if you type the link strongly, you have to go back and change all of them as soon as your site configuration/structure changes (say, you change the menu or move domains)
Sure, you can use relative links to stay ahead of trouble for a domain change, and you can use redirects for changes in link structure - but it's still a damn hassle.
Just tell us the internal parameter so we don't have to go searching for it, so we can use links that simply use links like index.php?option=com_phocagallery&view=categories&Itemid=82&category=5
Well, it's not "category".
Re: link to gallery (category) in article
Posted: 12 May 2016, 13:44
by svArtist
Oh, that's why nothing was working, even after I looked at the routing...
I was still working with the "categories" view, but of course you want the "category" view.
I'm an idiot, it's a separate menu item type^^
Use this pattern here if you want to maintain the Joomla menu link style and a little flexibility:
index.php?option=com_phocagallery&view=category&Itemid=[what ever menu item ID you're targeting]&id=[Category ID of your gallery category]
If you want to manage the links in one place, you can create a new menu that holds all your links (you can link to specific categories directly there) - and then simply insert links to those now easily accessible menu items in your articles.
You can omit the category name. If you need it, use "id:name", e.g. "index.php?option=com_phocagallery&view=category&Itemid=82&id=30:mycatname