How to show only images that share a tag
-
- Phoca Member
- Posts: 18
- Joined: 22 Feb 2011, 02:25
How to show only images that share a tag
How do I create a page that shows only images that share a tag?
Tags:
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: How to show only images that share a tag
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
Jan
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
Jan
If you find Phoca extensions useful, please support the project
- richardh9935
- Phoca Member
- Posts: 10
- Joined: 17 Apr 2020, 07:58
Re: How to show only images that share a tag
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?
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?
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: How to show only images that share a tag
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
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
- richardh9935
- Phoca Member
- Posts: 10
- Joined: 17 Apr 2020, 07:58
Re: How to show only images that share a tag
Jan,
It's working.
Many thanks.
It's working.
Many thanks.
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: How to show only images that share a tag
Hi, great to hear it.
Jan
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Member
- Posts: 18
- Joined: 22 Feb 2011, 02:25
Re: How to show only images that share a tag
Is there a way with the static url to order the tags as well by date added or hits etc?
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: How to show only images that share a tag
Hi, no, there is no such option, the ordering is based on category ordering.
Jan
Jan
If you find Phoca extensions useful, please support the project