Filter Tags by URL

Hi, I would like to be able to add a tag filter in OwnCloud through the URL which would automatically load that tag in the file list

So for eg. I could email the link https://myinstall.com/index.php/apps/files/?dir=/&view=systemtagsfilter&tag=mytag to someone and they could immediately open up the tags page with 'mytag' entered and the filter activated.

This would be useful to send links to tag filters in emails, like we can do for folder locations

Is this possible? Thanks

Would this be better in feature requests? Or maybe I've missed something obvious :man_with_gua_pi_mao:

so I've got this working for a single tag as above - but it would be really great to add multiple tags to the url parameter, for example https://myinstall.com/index.php/apps/files/?dir=/&view=systemtagsfilter&tag=mytag&tag=mytag2

Any one have ideas how to implement this? The tag system would be much more useful if it worked with url links

Cheers

@PVince81 is the tags maintainer and can perhaps give some hints ^^

Would be a nice feature request I think. Maybe there should also be an anchor icon in the toolbar of the list to be able to easily copy said link.

@pmaier1 what do you think ?

Wait, this already works. Just filter by two tags and then copy the URL.

I did just that, the URL became http://localhost/owncloud/index.php/apps/files/?dir=1/2&view=systemtagsfilter

The "dir" parameter contains the system tag id of the tags to filter by. So dir=1/2/3 would filter by three tags.

2 Likes

oh wow, so simple - this is awesome!