This forum is for assistance with theme development.

Multiple Templates: Help, how do I style each section?

I’ve scoured the forms, read every tutorial that I can get my hands on and I’m still a bit confused regarding multiple templates. You see, I want more than the same basic layout for every page. I would like to have access to multiple layouts within a single theme, which I could then assign to various pages (or nodes, still trying to figure that one out).

So I throw myself at the mercy of those wiser than me. Drupal community, how do you create multiple layouts using the same theme? How do you vary the layout of each section within your Web site? I’m a fairly skilled CSS programmer with only a modest understanding of PHP/Drupal/Xtemplate.

Example: Using flexinode (http://drupal.org/node/view/5737) I’ve created a new content type called "Campus News." Under taxonomy I’ve created a new section called "Campus News." Now I would like to style this section differently than the other sections of the Web site. In fact I would like to have the option of creating a new style for every section. This is where I hit a roadblock, because Xtemplate (which is great) uses a single template file for the entire site. How might I get around this limitation and assign various styles to each section?

Here’s some of my research:

Related Posts

Apply Specific HTML template to: taxonomy OR node-type OR module OR block

http://drupal.org/node/view/8084

I'm about 80% done, but have some crediting questions

I have modified the xtemplate theme to be darker and made some small hacks to it, below is the URL.
http://www.etherpunk.com/files/gamer-1.0pre1.tar.bz2 (for those intersted in taking a peak, if it helps)

Alignment problem with phptemplate

Hi,

I've recently installed drupal for my site and I'm having a slight problem with the block alignment.

When not logged in, everything is fine, but when logged in the title for the top blocks is covering the bar which I have my primary links on. Unfortunatly I don't know too much about coding in php so I don't know what to look for to fix it.

Any help would be most appreciated.

phptemplate: using two versions

For various reasons, I've decided that I want to use the phptemplate theme and have it twice for a site I'm working on. I copied and renamed the folder to blog_template and replaced all occurances of 'phptemplate' with 'blog_template'. This resulted in a function [?function _blog_template_get_settings()?]. Now, no matter which theme is set as default, both the above function and [?function _phptemplate_get_settings()?] get called. I had expected that only the one which corresponds to the selected theme would get called. Can anyone explain what is going wrong? Thanks!

how can i make my post suggest the html tag?

just like this post Top Ten Tips for Programming ASP.NET

its http://design77.uni.cc/drupal//?q=node/view/17

old its here http://www.ondotnet.com/pub/a/dotnet/2002/04/22/asptips.html

why its cant like the old's ,

where the space ?

Where is '{blocks}' generated (xtemplate theme)

Hi,

I'm working on xtemplate theme (gworks flavour) trying to give it a different look, and removing table tags while keeping features as showing images (image.module).

I want to remove the center alignment to the titles of every block (box?), but the format comes within the '{blocks}' variable as follows:

div class="block block-bookmarks" id="block-bookmarks-0"               
p align="center"
b hip's bookmarks /b 

...

And I can't find where this format comes from: any help???

Pages

Subscribe with RSS Subscribe to RSS - Theme development