?

Log in

No account? Create an account
 
 
21 July 2009 @ 04:20 pm
LJ Layout query: adding tags list to 'Quite Lickable' layout (PAID accounts)  
thedothatgirl asked if I knew how to make the tags list to the sidebar on the 'Quite Lickable' layout and after doing some research, I figured I'd put the means and method up here so other people can use it if they like.



Go to the 'Advanced Customization developed area


Click on image for full size screenshot

click on "Your Layers"


Click on image for full size screenshot.

Don't worry if yours doesn't look like this - I've changed my layout so many times and I never delete anything...

You should see one that says "Child of layer 12345: Quite Lickable" (the numbers won't be 1234, obvs.) and there should hopefully be one that says "Auto-generated Customizations".

Click on the 'Edit' button of that one


Click on image for full size screenshot.

Again, don't worry if yours doesn't look like this, that's my journal and I've put so much in there it's scary. What you should have is basically the CSS of your layout and any customisations you've made with regards text etc.

Scroll right to the bottom of what you have and insert this:

function Page::lay_print_paraphernalia() {
$this->lay_print_journalinfo();
$this->lay_print_viewsel();
$this->lay_print_viewspec();
$this->lay_print_userlinks();
$this->lay_print_custom_paraphernalia();
}

function Page::lay_print_custom_paraphernalia() {
paraphernalia_box_open("tag list","Tag List");
print "<ul>";
foreach var TagDetail t ($this->visible_tag_list()) {
print "<li><a href='"+$t.url+"'>"+$t.name+" ("+$t.use_count+")</a></li>";
}
print "</ul>";
paraphernalia_box_close("tags","Tags");
}


Click on 'Save & Compile' at the top of the page and cross your fingers - if it works, along the bottom part of the screen should say "compiled with no errors" and you're done. If it doesn't say that, go back and delete the code you've just put in and lemme know...

*g*

Hope that helps!
 
 
Current Music: Beth Orton - Devil Song
 
 
 
thedothatgirl: AtSHugsthedothatgirl on July 21st, 2009 04:44 pm (UTC)
I love you *smooshes* I'll have a play later.
the girl who used to dance on fire and brimstonewhiskyinmind on July 23rd, 2009 02:56 pm (UTC)
*squish*

hope it works!
thedothatgirl: tv1thedothatgirl on July 23rd, 2009 03:47 pm (UTC)
I gave it a try but got an error - this is the message from the very bottom box...

Compile error: line 59, column 5: Unexpected token parsing statement block
S2::NodeStmtBlock, S2/NodeStmtBlock.pm, 47
S2::NodeForeachStmt, S2/NodeForeachStmt.pm, 46
S2::NodeStmt, S2/NodeStmt.pm, 53
S2::NodeStmtBlock, S2/NodeStmtBlock.pm, 43
S2::NodeFunction, S2/NodeFunction.pm, 104
S2::Layer, S2/Layer.pm, 58
S2::Compiler, S2/Compiler.pm, 27


Context

55: print "
56:
57: ";
58: foreach var TagDetail t ($this->visible_tag_list()) {
59: * print ""+$t.name+" ("+$t.use_count+")
60: ";
61: }
62: print "
63:
the girl who used to dance on fire and brimstonewhiskyinmind on July 23rd, 2009 03:55 pm (UTC)
Sugar - I just noticed that the post had changed the format of the code I inserted. The code to paste in should be:

function Page::lay_print_paraphernalia() {
$this->lay_print_journalinfo();
$this->lay_print_viewsel();
$this->lay_print_viewspec();
$this->lay_print_userlinks();
$this->lay_print_custom_paraphernalia();
}

function Page::lay_print_custom_paraphernalia() {
paraphernalia_box_open("tag list","Tag List");
print "<ul>";
foreach var TagDetail t ($this->visible_tag_list()) {
print "<li><a href='"+$t.url+"'>"+$t.name+" ("+$t.use_count+")</a></li>";
}
print "</ul>";
paraphernalia_box_close("tags","Tags");
}
thedothatgirlthedothatgirl on July 23rd, 2009 04:23 pm (UTC)
Weeeee! Points to journal...

Err now I need to clean up the tags a bit. Thank you

*hugs*
the girl who used to dance on fire and brimstonewhiskyinmind on July 23rd, 2009 04:26 pm (UTC)
Excellent!