How to show only images that share a tag

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

How to show only images that share a tag

Post by quiggles » 10 Nov 2019, 18:48

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

Tags:

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

Re: How to show only images that share a tag

Post by Jan » 12 Nov 2019, 15:36

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 Newbie
Phoca Newbie
Posts: 3
Joined: 17 Apr 2020, 07:58

Re: How to show only images that share a tag

Post by richardh9935 » 18 Apr 2020, 01:19

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: 42542
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: How to show only images that share a tag

Post by Jan » 18 Apr 2020, 15:38

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 Newbie
Phoca Newbie
Posts: 3
Joined: 17 Apr 2020, 07:58

Re: How to show only images that share a tag

Post by richardh9935 » 21 Apr 2020, 08:30

Jan,
It's working.
Many thanks.

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

Re: How to show only images that share a tag

Post by Jan » 21 Apr 2020, 16:17

Hi, great to hear it.

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

quiggles
Phoca Member
Phoca Member
Posts: 14
Joined: 22 Feb 2011, 02:25

Re: How to show only images that share a tag

Post by quiggles » 11 May 2020, 14:03

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: 42542
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: How to show only images that share a tag

Post by Jan » 11 May 2020, 17:33

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