Component: Multi-Level Tags with Catchall Category

Aug 21, 2005 09:55

This code is just like that of Multi-Level Tags in Sidebar, except for the following three things ( Read more... )

code:tagsbox:multi-level, layout:component

Leave a comment

murklinstest January 24 2008, 18:33:38 UTC
Hmmm. I can't really see many of your tags on your journal, so I'm going to describe how this works from the very beginning -- please don't be insulted if you already know all this, I just need to make sure we're on the same page. So the very first thing you have to do with this code is put colons into your tag names. So let's say in my journal I talk about movies, tv shows and my real life and other random topics. My tags might be:

arrested development, bad dates, cloverfield, csi, food, greys anatomy, juno, sweeney todd, veronica mars, work, zombies

Now, I want to make my tags show up in a list, grouping all the tv show tags together, all the movies tags together and everything else into a catchall "misc" group. So I rename all my tags to look like this:

bad dates, food, movies:cloverfield, movies:juno, movies:sweeney todd, tv:arrested development, tv:csi, tv:greys anatomy, tv:veronica mars, work, zombies

Now, when I use the code above, my tags should display in a list like this:
  • movies
    • cloverfield
    • juno
    • sweeney todd
  • tv
    • arrested development
    • csi
    • greys anatomy
    • veronica mars
  • misc
    • bad dates
    • food
    • work
    • zombies
All the tags that belong to a distinct group (tv, movies) get sorted into that group, and all the tags that are kind of random and don't belong anywhere in particular end up in the "misc" group.

OK! So, if your tags already have colons in them to show what groups they belong to, and you're still having problems making this work the way you want, comment back to let me know what's going wrong, and also give me a link to the layer you're using so I can look at your code. Instructions on how to link me to your layer are here: http://community.livejournal.com/s2flexisquares/224050.html

Reply

fairwells January 25 2008, 02:43:49 UTC
Thank you so very very much for taking out the time to explain that to me so clearly. That helped a great deal. Thank you so much. I understand now that the coding is done in the tags themselves not manually in the code. That was the part where I was confused. I thought it was the code itself, but now from your explanation and help at component_help I see that it's in the tags itself. I understand now. Thank you so much.
Now I have to redo all my tags.
I love this tutorial by the way. Thanks for making it and thank you again for explaining it. :)

Reply

murklinstest January 25 2008, 02:53:08 UTC
No problem at all, and you're most welcome! :)

Reply


Leave a comment

Up