![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
I'm reading an old tutorial on s2_bloggish on how to add custom modules into your sidebar but when I copy the s2 shown there into my custom theme layer I get the message Compile error: line 181, column 1: Can't set non-existent property 'sidebar_primary'. Does anyone know what the right wording is to convert the s2 over to Dreamwidth?
Code in question:
set sidebar_primary = [
[ "userprofile", "Userpic Title", "0", "1" ],
[ "viewlinks", "Viewlinks Title" ],
[ "customtext" ],
[ "calendar" ],
[ "links", "Links Title" ],
[ "tags", "Tags Title" ],
[ "pagesummary", "Summary Title" ],
[ "syndicate", "Syndicate Title" ],
[ "poweredby", "Poweredby Title" ],
];
ETA: as ninetydegrees has rightfully pointed out, I linked and am referring in the title and throughout the post to the wrong thing altogether. I probably meant to refer to this: http://s2-bloggish.livejournal.com/4940.html
ETA2, 4-27: solved this by comparing Carrie's code to ninety's, then stared at strings in DW's Cookbook until it just kind of clicked. DW syntax that works is as follows (in which less is more but sometimes more is less, so I just did whatever worked - you can probably vary wildly from the syntax I chose and still succeed if you know what you're doing):
function print_module_customtext() {
var Page p = get_page();
open_module("customtext", $*text_module_customtext, $*text_module_customtext_url);
close_module();
open_module("customtext", $*text_module_customtext, $*text_module_customtext_url);
"""
***put your free text here***
""";
close_module();
open_module("customtext", $*text_module_customtext, $*text_module_customtext_url);
"""
***put your second free text selection here***
""";
close_module();
open_module("customtext", $*text_module_customtext, $*text_module_customtext_url);
"""
***put your third free text selection here; you can rinse and repeat pretty much indefinitely***
""";
close_module();
}
With many thanks to ninetydegrees as always for being super-helpful (and for having super-helpful links!).