This is code to display your tags in a sidebar component. By naming your tags using a delimiter, for example animals:cats:tabbies or animals:cats:siamese, where the colon is the delimiter, you can display a heirarchical list of tags. If you feel your tags list will take up too much space in the sidebar, there is example styling provided to limit
(
Read more... )
Comments 118
Reply
Reply
Reply
What happens to your code if you have something like foo:bar:bam ?
Also, with a delimeter like ":" it displays pretty well in other styles, but other delimeters may not print so nicely in terms of readability. Too bad we can't get LJ to retrofit tags with this kind of a feature.
Reply
This code will create a multi-level list (by multi I mean "not limited to two") so if this tag were your only visible tag, it would display as:
And yes, it's a shame that your chosen delimiter might not be too visually appealing in some other layouts, but I suppose if it bothers someone enough they can go in and rename all their tags. And I definitely would have liked to get a built-in tag bundling feature, like you can get at del.icio.us, but I can live with this hack for now.
Reply
(The comment has been removed)
##### Config ##### line and stop near the bottom of the function just before these lines:
# mt:20050627: This adds the Tags component, if there are visible tags.
if ($list != "")
{
print_comp_header($tag_title);
"""$list""";
print_comp_footer();
}Now paste the copied section of code at the top of your page_layout function. You might want to add some comments around it so you remember that this section builds the tag list. Now to display tha tag component, you need to add the lines that make up a custom component, somewhere in with all your other custom components. You choose where it fits into the order. One ( ... )
Reply
(The comment has been removed)
Reply
Reply
Add this to the top of your layer: layerinfo sourceviewable = 1;
A link to your layer would then look like this: http://www.livejournal.com/customize/advanced/layersource.bml?id=somenumber
For the somenumber portion, sub in the LayerID you see next to that layer in your Layers page.
Reply
Keep in mind that I am damn near clueless when it comes to layouts.
Reply
http://www.livejournal.com/customize/advanced/layersource.bml?id=3670682
Reply
Leave a comment