How to show only images that share a tag

Phoca Gallery - image gallery extension
quiggles
Phoca Member
Phoca Member
Posts: 18
Joined: 22 Feb 2011, 02:25

How to show only images that share a tag

Post by quiggles »

How do I create a page that shows only images that share a tag?

Tags:
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: How to show only images that share a tag

Post by Jan »

Hi, there is no option to display a page with images with one specific tag only.

For this purpose, maybe it will be better to use Phoca Cart (which display images similar way like Phoca Gallery) because there is advanced filtering and searching feature :idea:

Jan
If you find Phoca extensions useful, please support the project
User avatar
richardh9935
Phoca Member
Phoca Member
Posts: 10
Joined: 17 Apr 2020, 07:58

Re: How to show only images that share a tag

Post by richardh9935 »

Jan,
How would I display all images by tag?
e.g. I have a photo competition of cacti and succulents, done in 2018. I also have a photo gallery of cacti and succulents, only some of which were in the competition. How can I display "all cacti" and "all succulents" so that the ones in the competition also appear, AND so that they appear in their relevant category?

CATEGORIES:
Cacti
Succulents
Photo competition:
photo-competition-cacti
photo-competition-succulents


TAGS:
cacti-tag
succulent-tag

I thought that PhocaGallery would have a user-view of the data that would be by Tag, and users could select Tag=cacti-tag.

Must I change to using PhocaCart?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: How to show only images that share a tag

Post by Jan »

Hi, you can do it in category view (you can create the links manually and then add them to menu lin as static urls)

Copy your link to category view and remove the ID and set tagid there:

e.g.:
from
index.php/phoca-gallery/category/1-category name

to:
index.php/phoca-gallery/category/?tagid=1

tags are set by ID of the tag and only images of one tag can be displayed.

So the link will display all items with tag ID = 1

Jan
If you find Phoca extensions useful, please support the project
User avatar
richardh9935
Phoca Member
Phoca Member
Posts: 10
Joined: 17 Apr 2020, 07:58

Re: How to show only images that share a tag

Post by richardh9935 »

Jan,
It's working.
Many thanks.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: How to show only images that share a tag

Post by Jan »

Hi, great to hear it.

Jan
If you find Phoca extensions useful, please support the project
quiggles
Phoca Member
Phoca Member
Posts: 18
Joined: 22 Feb 2011, 02:25

Re: How to show only images that share a tag

Post by quiggles »

Is there a way with the static url to order the tags as well by date added or hits etc?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: How to show only images that share a tag

Post by Jan »

Hi, no, there is no such option, the ordering is based on category ordering.

Jan
If you find Phoca extensions useful, please support the project
Post Reply