Multilevel-tags in sidebar - Smooth Sailing

Aug 24, 2007 14:27

two alternative ways,

Both versions overwrite the function Page::lay_print_sidebar_tags()
I think the first version is the better one, so if you can you should use this one:

First way: )

smooth sailing

Leave a comment

Comments 8

k_whyohwhy August 24 2007, 12:45:02 UTC
I'm sorry I'm confused. I put this in the theme layer, right?

Now, the tags box is gone and is replaced by "note 2"

Help?Sorry for the trouble

Reply

babyelefant August 24 2007, 12:48:25 UTC
Jep you are right, but your old code overwrote the freetxtbox 2 and this code overwrites the tags sidebax. As I said in my last comment, you have to change the visibilty of the tags sidebox. You currently have it set to "hide" as you can see at the bottom of your userlayer

Note2 is that what you have in the freetext2 box

Reply


nostariel April 9 2008, 06:45:54 UTC
Thank you for this! The code I have now overrides function Page::lay_print_sidebar_freetextbox_2(), so this one is much better. Except now my tags sidebox is titled "Navigation", which is odd. And I miss the #comments from the old version I have - it made it easier to read (for me), which was helpful for when I wanted to make changes like this customization.

Reply

babyelefant April 9 2008, 07:42:09 UTC
I have no idea why your Tags box would have that title, if you want me to lok at it - pleas make a post to everything_lj and use the posting form we provide there

Reply

nostariel April 9 2008, 13:21:14 UTC
I went back to the old version temporarily until I have enough time to redo all the CSS customizations so that this version will look the same (I have the part of the tag before the delimiter in bold and a different color, like this, which I'm not sure I can reproduce in the regular tags box), so the tags box title won't be an issue until then. If/when I get around to it, I'll make a post to everything_lj as you suggest. Thank you for such a quick reply!

Reply

nostariel June 25 2008, 08:05:30 UTC
Ah-ha! I'm so stupid!

# Specify the title of your tag box!
var string tag_title = "Navigation";

and

$this->lay_print_sidebox_top("Navigation");

Reply


Good wijucrap April 8 2011, 11:23:00 UTC
You made some good points there. I did a search on the topic and found most people will agree with your blog.

Reply


nuxicowl April 8 2011, 11:23:03 UTC
excellent articles, useful for me. keep writing and happy blogging.

Reply


Leave a comment

Up