DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Using Multiple Tags On Code Snippets

03.02.2006
| 3649 views |
  • submit to reddit
        I spent a lot of time trying to select snippets with
contain multiple tags. (series60 and sql)
There is no '+' links I can click anymore.
After about 10 minutes of trial and error, I find out how.
This also answer another question on correct use of URL.
# for tag 'series60' AND 'sql'
http://www.bigbold.com/snippets/tags/series60/sql/

# this doesn't work
http://www.bigbold.com/snippets/tag/series60/sql/

# all of these work (single tag case)
http://bigbold.com/snippets/tag/series60/
http://bigbold.com/snippets/tags/series60/
http://www.bigbold.com/snippets/tag/series60/
http://www.bigbold.com/snippets/tags/series60/
My conclusion is that.
For a single tag, use '/tag/...'.
For multiple tags, use '/tags/...'.
The first is quicker to type, while the second is flexible in case you want to filter further.    

Comments

Snippets Manager replied on Mon, 2012/05/07 - 2:21pm

As you note, we used to make this usage public and it was linked, but it caused problems with people crawling us, and rather than fix that problem, I decided to 'cover up' the feature. del.icio.us has a similar feature (with a different URL scheme though) which also isn't publicized. Anyway, good detective work!