I've been trying to incorporate
xtomxfallsx's
drop-down tags list tutorial for Component into my layout myself to no avail. I haven't see this tutorial in this community either, so I was wondering if anyone knows how to make a drop-down list for tags in the sidebar. Help please?
PS: my layout is customized based on
dooped's code & I'm using the updated version of
(
Read more... )
Comments 7
Reply
Link to my layer
Reply
function print_sidebar_tags() {
var string tagdd_header = "Tags In This Journal"; # set the component header text, you can change this to whatever you want
var string tagdd_button = "Go"; # button text, change it to whatever you want
var bool tagdd_blank = true; # set to true to create a blank option at top the list, or false not to
# No need to change anything below this line (unless you know what you are doing!)
var Page p = get_page();
var string tagdd_base_url = $p.journal->base_url();
var string tagdd_content = "";
var string tagdd_options = "";
var TagDetail[] tagdd_tags = $p->visible_tag_list();
foreach var TagDetail tagdd_tag ($tagdd_tags) {
$tagdd_options = $tagdd_options + """$tagdd_tag.name\n""";
}
$tagdd_content = $tagdd_content + """
""";
print_sidebar_box($tagdd_header, $tagdd_content, "");
}Then, inside print_sidebar(), toward the end where you ( ... )
Reply
Reply
Reply
Reply
Leave a comment