link to gallery (category) in article

General Forum
ElviraKate
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 06 Mar 2012, 17:53

link to gallery (category) in article

Post 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
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9095
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: link to gallery (category) in article

Post 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
svArtist
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 12 May 2016, 12:00

Re: link to gallery (category) in article

Post 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".
svArtist
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 12 May 2016, 12:00

Re: link to gallery (category) in article

Post 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
Post Reply