Paid Accounts OnlyThe following tutorial requires creating and editing a custom theme layer, which in turn requires a paid, permanent, or early adopter account. Please read
What are the paid account benefits? and
How do I buy a paid account? to learn about the paid account benefits and how to buy a paid account.
This tutorial requires the creation of a theme layer. If you already have a theme layer, you will need to edit it and add the code below. If you do not have a theme layer, you will need to create one by following the instructions in the
Theme Layer tutorial.
The code below will add a tag list to the sidebar in all other views except the friends view. If you would like to see your tag list also on your friends page, leave out the text highlighted in yellow. If your theme layer or layout already has code to print the sidebar, modify it to include the code highlighted in orange.
Otherwise, add the whole following code to your theme layer:
function print_sidebar(Page p) {
var string title = $p->title();
var string userpic;
var Image up_img = $p.journal.default_pic;
if (defined $up_img) {
$userpic = """
""";
}
var string website_name = $p.journal.website_name ? $p.journal.website_name :
$*text_website_default_name;
var string website;
if ($p.journal.website_url != "") {
$website = """>
$website_name
""";
}
var string links;
foreach var string v ($p.views_order) {
$links = "$links> " + ($p.view == $v ?
lang_viewname($v) :
"
"+lang_viewname($v)
+"") + "
\n";
}
# Table Wrapper
"\n";
"\n";
"";
# Title
"
$title\n";
# Links
"
$links\n$website\n";
$p->lay_sidebar_navigation();
# Userpic
"
"; if($userpic != "") { "
$userpic
"; }
# Link List
if (size $p.linklist > 0 and $*linklist_support) {
if (not $p.linklist[0].is_heading) {
"Links:
";
}
$p->print_linklist();
}
# Tag List
var TagDetail[] visibletags = $p->visible_tag_list();
if (size($visibletags) != 0 and $p.view != "friends") {
"
Tags:
";
foreach var TagDetail t ($visibletags) {
"""
$t.name""";
}
}
# End Table
"\n";
}
Compile your layer, and it's ready to use. You will need to apply your theme layer via the
Customize interface in order for your changes to take effect.
Additional References
What are the different S2 layer types?
Contributed by
shiningkianna.