Is it possible to have another sidebar? For the moment I have one on the right, I would love to have one on the left for the calendar, summary and tags, with the entries in the middle. I think it would be done in the "function Page::lay_print_body()" section but I'm not advanced enough to try that alone and bork my pretty layout
(
Read more... )
Comments 10
This bit of code removes the calendar, summary, and tags boxes from the existing sidebar:
function Page::lay_print_sidebar() {
"""
foreach var int position (1..14 ( ... )
Reply
Unfortunately, I get this :
Can't define undeclared object function Page::lay_print_sidebar2()
I tried starting in a different order but LJ simply doesn't recognize this sidebar2 function...
Reply
Reply
function Page::lay_print_sidebar2() {
"""
""";
foreach var int position (1..3) {
var string pos = ""+$position;
if ($*layout_sidebox_summary_visibility==$pos) { $this->lay_print_sidebar_summary(); }
elseif ($*layout_sidebox_tags_visibility==$pos) { $this->lay_print_sidebar_tags(); }
elseif ($*layout_sidebox_latestmonth_visibility==$pos) { $this->lay_print_sidebar_latestmonth(); }
}
""" """;
}
Reply
function Page::lay_print_body() {
$this->lay_print_bodytop();
"""
""";
if (viewer_sees_hbox_top()) {
"""
""";
$this->print_hbox_top();
"";
}
"""""";
if ($*layout_sidebar_position=="left") {
"""""";
$this->lay_print_sidebar();
"""""";
} elseif ($*layout_sidebar_position=="right") {
"""""";
$this->lay_print_sidebar2();
"""""";
}
"""""";
$this->print_body();
$this->lay_print_bodybottom();
"""""";
if ($*layout_sidebar_position=="right") {
"""""";
$this->lay_print_sidebar();
"""""";
} else {
"""""";
$this->lay_print_sidebar2();
"""""";
}
"""""";
if (viewer_sees_hbox_bottom()) {
"""
""";
$this->print_hbox_bottom();
"";
}
""" """;
}
I did all this blind so let me know if something doesn't work.
Reply
propgroup text_sidebar ( ... )
Reply
property string layout_sidebox_freetext_visibility ( ... )
Reply
property string layout_sidebox_freetext_5_visibility ( ... )
Reply
property string layout_sidebox_summary_visibility ( ... )
Reply
Leave a comment