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... )
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) {
var string pos = ""+$position;
if ($*layout_sidebox_profile_visibility==$pos) { $this->lay_print_sidebar_profile(); }
elseif ($*layout_sidebox_links_visibility==$pos) { $this->lay_print_sidebar_systemlinks(); }
elseif ($*layout_sidebox_multisearch_visibility==$pos) { $this->lay_print_sidebar_multisearch(); }
elseif ($*layout_sidebox_freetext_visibility==$pos) { $this->lay_print_sidebar_freetextbox(); }
elseif ($*layout_sidebox_freetext_2_visibility==$pos) { $this->lay_print_sidebar_freetextbox_2(); }
elseif ($*layout_sidebox_freetext_3_visibility==$pos) { $this->lay_print_sidebar_freetextbox_3(); }
elseif ($*layout_sidebox_freetext_4_visibility==$pos) { $this->lay_print_sidebar_freetextbox_4(); }
elseif ($*layout_sidebox_freetext_5_visibility==$pos) { $this->lay_print_sidebar_freetextbox_5(); }
elseif ($*layout_sidebox_freetext_6_visibility==$pos) { $this->lay_print_sidebar_freetextbox_6(); }
elseif ($*layout_sidebox_freetext_7_visibility==$pos) { $this->lay_print_sidebar_freetextbox_7(); }
elseif ($*layout_sidebox_freetext_8_visibility==$pos) { $this->lay_print_sidebar_freetextbox_8(); }
elseif ($*layout_sidebox_freetext_9_visibility==$pos) { $this->lay_print_sidebar_freetextbox_9(); }
elseif ($*layout_sidebox_freetext_10_visibility==$pos) { $this->lay_print_sidebar_freetextbox_10(); }
elseif ($*layout_sidebox_freetext_private_visibility==$pos and viewer_is_owner()) { $this->lay_print_sidebar_freetextbox_private(); }
}
""" """;
}
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
Leave a comment