Menu - Category Blog - Multiple Tags Topic is solved

Need help with the Administration of your Joomla! 3.x site? This is the spot for you.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Post Reply
User avatar
LukeDouglas
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 242
Joined: Sat Dec 08, 2007 8:23 pm

Menu - Category Blog - Multiple Tags

Post by LukeDouglas » Mon Jun 29, 2020 7:06 am

I setup a menu with multiple menu items by county. Each menu item uses a tag for that county. Example: I setup a category blog for 'Memorials' and added the tag 'Dale'. Works fine as you can see here https://alabamavictimsmemorial.com/dale.

I setup a menu with multiple menu items by county / region. Each menu item uses a tag for that county but I added another tag 'Wiregrass' as that is a region. Example: I setup a category blog for 'Memorials' and added the tags 'Dale' and 'Wiregrass'. It doesn't work as you can see here https://alabamavictimsmemorial.com/wiregrass-dale.

Now logically I would think that it would apply BOTH tags and only display articles that have the tags 'Dale' and 'Wiregrass' assigned to the articles. But it is filtering all records for 'Wiregrass' but it is not filtering for the county 'Dale', instead showing all counties for the 'Wiregrass' tagged articles in the Memorial category.

Is Joomla stupid or am I? :(

 
User avatar
leolam
Joomla! Master
Joomla! Master
Posts: 20118
Joined: Mon Aug 29, 2005 10:17 am
Location: Netherlands/ UK/ S'pore/Jakarta/ North America
Contact:

Re: Menu - Category Blog - Multiple Tags

Post by leolam » Mon Jun 29, 2020 2:40 pm

If you tag an article twice it will show up in both tags...what do I miss in your post? Is "dale" not showing? brighten my day pls? (examples pls)

Leo 8)
Joomla's #1 Professional Services Provider:
#Joomla Professional Support: https://gws-desk.com -
#Joomla Specialized Hosting Solutions: https://gws-host.com -
#Joomla Webmaster Services: gws-webmaster.services

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 38599
Joined: Sat Apr 05, 2008 9:58 pm

Re: Menu - Category Blog - Multiple Tags

Post by Webdongle » Mon Jun 29, 2020 2:43 pm

You were expecting only
A + B
but it is returning
A OR B, A AND B, A, B

That is to say it is returning any of the tags not only both.

Perhaps create an Override and alter the logic in the display? Maybe there is an extension that you can use different logic for the Tags?
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"The definition of insanity is doing the same thing over and over again, but expecting different results": Albert Einstein.

User avatar
leolam
Joomla! Master
Joomla! Master
Posts: 20118
Joined: Mon Aug 29, 2005 10:17 am
Location: Netherlands/ UK/ S'pore/Jakarta/ North America
Contact:

Re: Menu - Category Blog - Multiple Tags

Post by leolam » Mon Jun 29, 2020 3:02 pm

Webdongle wrote:
Mon Jun 29, 2020 2:43 pm
You were expecting only
A + B
but it is returning
A OR B, A AND B, A, B

That is to say it is returning any of the tags not only both.
huhhhhh? Is this English or am I (probably) stupid as well? Have you studied math dear Kevin? :)

Leo 8)
Joomla's #1 Professional Services Provider:
#Joomla Professional Support: https://gws-desk.com -
#Joomla Specialized Hosting Solutions: https://gws-host.com -
#Joomla Webmaster Services: gws-webmaster.services

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 38599
Joined: Sat Apr 05, 2008 9:58 pm

Re: Menu - Category Blog - Multiple Tags

Post by Webdongle » Mon Jun 29, 2020 4:57 pm

Looks like the OP is expecting the result to return only Articles that contain both Tags but the Articles displayed contain either of the Tags as well. Surely you have heard of Bolean logic in relation to searches https://www.webopedia.com/TERM/B/Boolean_search.html
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"The definition of insanity is doing the same thing over and over again, but expecting different results": Albert Einstein.

User avatar
leolam
Joomla! Master
Joomla! Master
Posts: 20118
Joined: Mon Aug 29, 2005 10:17 am
Location: Netherlands/ UK/ S'pore/Jakarta/ North America
Contact:

Re: Menu - Category Blog - Multiple Tags

Post by leolam » Mon Jun 29, 2020 5:05 pm

"must be that I am Dutch and I am a Cheese Head...do not get this"

Never heard of Webopedia.com....sorry I am for sure a Cheese Head

Leo 8)
Joomla's #1 Professional Services Provider:
#Joomla Professional Support: https://gws-desk.com -
#Joomla Specialized Hosting Solutions: https://gws-host.com -
#Joomla Webmaster Services: gws-webmaster.services

User avatar
LukeDouglas
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 242
Joined: Sat Dec 08, 2007 8:23 pm

Re: Menu - Category Blog - Multiple Tags

Post by LukeDouglas » Mon Jun 29, 2020 10:49 pm

Webdongle,

Well I believe I found the simplest solution! In the Tag - Options, under the Item Selection tab, change the 'Match Type' to 'ALL'. By default it is set to 'Any'.
Webdongle wrote:
Mon Jun 29, 2020 2:43 pm
You were expecting only
A + B
but it is returning
A OR B, A AND B, A, B

That is to say it is returning any of the tags not only both.

Perhaps create an Override and alter the logic in the display? Maybe there is an extension that you can use different logic for the Tags?

 

Post Reply

Return to “Administration Joomla! 3.x”