[personal profile] alchemy posting in [community profile] style_system
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!

Date: 2011-01-23 07:06 pm (UTC)
matgb: Artwork of 19th century upper class anarchist, text: MatGB (Default)
From: [personal profile] matgb
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...)

Date: 2011-01-23 07:18 pm (UTC)
matgb: Artwork of 19th century upper class anarchist, text: MatGB (Default)
From: [personal profile] matgb
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.

Date: 2011-01-23 07:23 pm (UTC)
ninetydegrees: Art & Text: heart with aroace colors, "you are loved" (Default)
From: [personal profile] ninetydegrees
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 Date: 2011-01-23 07:24 pm (UTC)

Date: 2011-01-23 07:30 pm (UTC)
ninetydegrees: Art & Text: heart with aroace colors, "you are loved" (Default)
From: [personal profile] ninetydegrees
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.

Date: 2011-01-23 07:40 pm (UTC)
ninetydegrees: Art & Text: heart with aroace colors, "you are loved" (Default)
From: [personal profile] ninetydegrees
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.)

Date: 2011-01-28 02:59 am (UTC)
mmmag: A cotton cloud with drop shaped beads dangling below. (Default)
From: [personal profile] mmmag
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.) Date: 2011-01-28 03:14 am (UTC)

Profile

Dreamwidth style system discussion

June 2025

S M T W T F S
1234567
891011121314
15161718 1920 21
22232425262728
2930     

Style Credit

Expand Cut Tags

No cut tags
Page generated Jun. 22nd, 2025 06:56 pm
Powered by Dreamwidth Studios