AnsweredAssumed Answered

Possible to filter by multiple tags?

Question asked by zbennett on Aug 18, 2010
Latest reply on Nov 23, 2011 by zbennett
Hi all,

I'm trying to figure out if it's possible to filter my Document Library by multiple tags at once.  In other words, I want to filter by one tag and then narrow my filter down with another tag.

In an ideal world, I would be able to use the tag list on the left side of the page:
[img]http://zandadev.com/zach/my_images/alfresco_forums/filter_by_multiple_tags/tag_list.jpg[/img]

Clicking on a tag in the list filters my view of the Document Library so it only displays items with that tag, as expected.  Clicking on another tag then displays all of the items in the Library with that tag.  I want to change the functionality so that clicking on a second tag displays only the items with both the first tags and the second tag.

I know that I can use "Search This Site" to search for my first tag, and then I can narrow my search results by searching for my second tag.  I have a couple problems with this method, though; I don't want to make users have to type their tags and, even more importantly, search results work different from filter results.

Search results vs filter results:
[img]http://zandadev.com/zach/my_images/alfresco_forums/filter_by_multiple_tags/search_vs_filter.jpg[/img]

I've only been using Alfresco for a few weeks and I'm still learning how most of the features work, so this following idea might be a bit absurd…bear with me. ;)

I noticed that a standard Document Library URL looks like this:
http://192.168.100.62:8080/share/page/site/gallery/documentlibrary
And a filtered Document Library URL has a filter parameter:
http://192.168.100.62:8080/share/page/site/gallery/documentlibrary#filter=tag|anthony&page=1

My first thought was that I could figure out how to add multiple tag filters to the URL and then change the tag links so they modify the URL according to the way I want them to work. I haven't figured out how to manually add multiple tag filters to the URL yet though - is that even possible?

I'm going to be digging around for documentation on the way the tag list works… I would be extremely grateful if anyone could push me in the right direction to get started!

Thanks,
Zach

Outcomes