Log in

No account? Create an account

Previous Entry | Next Entry

2 Sidebars Customisation (Resolved)

  • Oct. 23rd, 2009 at 12:33 PM
Hi I've read and tried some stuff here and it is so wonderful to have such an available wealth of knowledge to help. I'm using Expressive (feather base) on my own lj and have made my first custom layer and added a header and even added the two custom text sidebars code too. My problem is and you can see it, it is obvious at my lj - is that the one command shows on both sides. I do want to keep the 3 column layout with Expressive and add custom text on both left and right sidebars. Left side could have one custom text added and right the other. How do I fix it?


( 4 comments — Leave a comment )
Oct. 23rd, 2009 01:13 pm (UTC)
It's kind of complicated; the layout is set up to have only one distinct custom text box. As you've found, setting it in two places results in the same content repeated. And, it's not possible to add the functions to handle a second one without re-coding the layout layer.

However, what you can do is override the function for the module above or below which you'd like the second custom text box to appear. For instance, since your right-hand text box is above the Links module, you could override the print_module_links() function to print the custom text at the beginning. If you need me to work out the code, let me know.
Oct. 23rd, 2009 01:39 pm (UTC)
Yes please I need help with CODE.

I'm pretty new to this.

I'll just let you know how I managed the items to be able to see the custom text over on the right. I had to put some as none to hold the place

First item in sidebar Profile

Second item in sidebar Custom Text

Third item in sidebar (none)

Fourth item in sidebar (none)

Fifth item in sidebar Custom Text
(making it fifth alowed it to go over the right.)

Sixth item in sidebar Links

Seventh item in sidebar (none)
Oct. 30th, 2009 02:20 pm (UTC)
First off, I'm so sorry to keep you waiting. Things have gotten really busy the last week. Anyway, here's the S2 code to draw a second custom text box above your Links List. You'll have to disable the custom text in your fifth item. You'll also want to change the highlighted parts to what you want to be in the second text box.
function print_module_links(string title) {
    open_module("customtext", "CustomText2", "");
    print safe """Second custom text block!""";

    var Page p = get_page();
    var UserLink[] links = $p.linklist;
    if (size($links) < 1 or not $*linklist_support) { return; }

    var bool box_open = false;
    if (not $links[0].is_heading) {
        open_module("typelist", $title, "");
        $box_open = true;

    var string[] items = [];
    foreach var UserLink link ($links) {
        if ($link.is_heading) {
            if ($box_open) {
                $items = [];
            open_module("typelist", $link.title, "");
            $box_open = true;
        if (not $link.is_heading and $link.title != "") {
            $items[size $items] = """<a href="$link.url">$link.title</a>""";
    if ($box_open) {
Let me know if you need more help, and I'll try to get back to you quicker.
Oct. 30th, 2009 11:00 pm (UTC)
This is beautiful. Thankyou. It worked.
( 4 comments — Leave a comment )

Latest Month

March 2016

S2 Help Communities


Powered by LiveJournal.com
Designed by chasethestars