HTML Logo by World Wide Web Consortium ( Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.

Everything in a table

Login / Search

 [ Join | More ]
 Add topic 
#34484 (In Topic #7769)

Fan in action

editing the layout

I'm working to edit my theme and for reasons of layout I would like to put everything (Header, side blocks, body) in a table. What I want to do is having a background behind the body that is different from the background in the margins. Does anybody know how to realize my idea? Any suggestion?
Thank you so much!
Back to the top

Community saint

Well, since no one else has chimed in, I'll undertake the duty. OCPortal does not work that way. It calls each element of the page output in a discrete, granular fashion from discrete template files, with the caveat that some files call other templates in a chain reaction.
So there is no overall "page" in which you can store a page structure and pull in the data that you wish, as we all learned to do in school. Instead, you must take your desired page structure and map the OCPortal template files to the different parts.
Unfortunately, even though there is a good way to view and edit the page templates (the side login block with the dropdown selector and the View button), the templates are in OCProduct's Tempcode, and there isn't any visual display of the template that you're editing. So you need at least a moderate level of understanding of OCPortal's operation to even get started.
Don't feel bad, I'm struggling up the same hill at this time. I have a very nice XHTML/CSS template, have isolated one part that matches an OCPortal template perfectly (in function), and am struggling to port it in at this time. Once I do, I expect that the process will go faster.
Back to the top
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: