alchemy: Raja (Default)
Barefoot Appalachian Lil' Abner Barbie ([personal profile] alchemy) wrote in [community profile] style_system2011-01-23 01:50 pm

Additional custom content modules?

I'm currently working on a layout that requires use of two custom content modules in Tabula Rasa. I've been so used to working with LJ's S2 that it didn't occur to me while I was designing that DW would only offer one custom text module as standard in the wizard.

Does anyone know the code for adding additional custom content modules in the theme layer? Please note that I am one of those people who is very proficient in CSS but not so great at S2 or other types of coding, so step by step instructions would be a godsend.

Thanks in advance!
matgb: Artwork of 19th century upper class anarchist, text: MatGB (Default)

[personal profile] matgb 2011-01-23 07:06 pm (UTC)(link)
I've never got around to writing code for it specifically (it's on my list of Things To Do for my Layout), but I have added a chunk of text and an image to the profile icon box--can share that easily if it'll do you, or would be interested to see if someone else has already done an actual extra text module, as that's something I want to do (ideally, I want the layout to allow as many extra text modules as the user wants but...)
matgb: Artwork of 19th century upper class anarchist, text: MatGB (Default)

[personal profile] matgb 2011-01-23 07:18 pm (UTC)(link)
True, and yes, you could. Code is

Since I did that, I've learnt a lot more about S2, so probably wouldn't do it in the same way, but it works and until I've time to work out what I actaully want to do, it does the job.

Important to fully format everything though, use P tags, no aut linebreaks or similar.
ninetydegrees: Art & Text: heart with aroace colors, "you are loved" (Default)

[personal profile] ninetydegrees 2011-01-23 07:23 pm (UTC)(link)
Would inserting the CSS which builds a module into your existing custom module work for you since HTML is allowed in custom text? I haven't really tested this so it's a genuine question.
Edited 2011-01-23 19:24 (UTC)
ninetydegrees: Art & Text: heart with aroace colors, "you are loved" (Default)

[personal profile] ninetydegrees 2011-01-23 07:30 pm (UTC)(link)
Yeah that's what I meant. Inserting all the CSS actually. Just do page source to view the code it's using and copy/paste. I know that works but since the module will be nested into the other one that may not be what you want.

Otherwise using S2 to do this is easy enough, unless you don't want them to be together. I can write the code for you.
ninetydegrees: Art & Text: heart with aroace colors, "you are loved" (Default)

[personal profile] ninetydegrees 2011-01-23 07:40 pm (UTC)(link)
Oh if they need to be separated, it's harder work. I'll see what I can do.

Tabular Rasa is both S2 and Core2. S2 is the language styles are written in. Core2 is the base layer all DW styles use (Core1 is similar to the base layer all LJ styles use. Core2 is an improved version of Core1.)
mmmag: A cotton cloud with drop shaped beads dangling below. (Default)

[personal profile] mmmag 2011-01-28 02:59 am (UTC)(link)
My current layout has extra custom text/content boxes, that I've added to the layout layer. I tried creating a theme layer for Tabula Rasa with the code I used to make the extra content boxes, but I got the following error: Only core and layout layers can define new properties.

If you'd like, I can make a new layout layer for you using Tabula Rasa as a base and the code I used to make the extra custom content boxes.

Here it is. The two extra content boxes appear under the 'options' tab for 'text'. I'm not sure how to make them appear under 'module' with the other content box.
Edited (Adding link.) 2011-01-28 03:14 (UTC)