Is there a basic code for creating custom sidebar modules? I found the code for adding the Tags list, but didn't really see a way of making it more general.
I have the same issue. I would like custom modules in the sidebat and a tag cloud as well, but none of the code i've tried that has been posted in this entry or the entry regarding getting tags into a QL layout works. Will they work on Plus accounts, or do we have to go to Paid?
Comments 5
function Page::lay_print_paraphernalia() {
# profile box
$this->lay_print_journalinfo();
# viewlinks
$this->lay_print_viewsel();
# page-specific viewlinks
$this->lay_print_viewspec();
# custom box
$this->lay_print_custom_paraphernalia();
# linklist
$this->lay_print_userlinks();
}
function Page::lay_print_custom_paraphernalia() {
var string id = "";
var string header = "";
var string content = "";
# custom1
$id = "custom1";
$header = "header";
$content = """
( ... )
Reply
To clarify for others how I got it working, you only do ONE function for custom paraphernalia, but can have multiple sidebar boxes like this:
function Page::lay_print_custom_paraphernalia() {
var string id = "";
var string header = "";
var string content = "";
# custom1
$id = "custom1";
$header = "header";
$content = """box content""";
paraphernalia_box_open ($id, $header);
print $content;
paraphernalia_box_close($id, $header);
# custom2
$id = "custom2";
$header = "header2";
$content = """box content2""";
paraphernalia_box_open ($id, $header);
print $content;
paraphernalia_box_close($id, $header);
}
Reply
Reply
(The comment has been removed)
Reply
Reply
Leave a comment