Closed (fixed)
Project:
Sections
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
28 Feb 2006 at 11:39 UTC
Updated:
28 Feb 2006 at 13:43 UTC
Having not had a reply from the OP, I wonder if anyone can help me with this?
I have multiple sections, but only want to use one theme. I want a different image to appear in the header section of the page depending on the section. I gather this can be done by editing page.tpl.php so I don't need to create a seperate theme for each section.
Although this may be inelegant (as noted by the OP), it is still something that I would like to be able to do.
Any help welcome.
Regards
Patrick
Comments
Comment #1
Bèr Kessels commentedYou cannot.
You can only use themes.
But you should not be afraid to make new themes. Most themes are as simple as a four line CSS file! http://drupal.org/node/11774
Comment #2
Patrick Nelson commentedBer,
Thanks - I'm not afraid of making themes (OK, OK, so I am!).
The real problem is that I have 87 sections and didn't want to create a seperate theme for each - particularly because each change is only minor (another image at the top of each page). Is there definitely no way to edit page.tpl.php?
Regards
Patrick
Comment #3
Bèr Kessels commentedif you want to use sections module: no.
But again: what is wrong with having 86 tiny CSS files? Really: nothing!
otherwise sections is just not for you, and you should add logic to your page.xx etc. And leave sections alone.
Comment #4
Patrick Nelson commentedBèr,
Sorry. This is my fault, I'm not explaining myself very well.
Firstly, I didn't realise that I needed only the CSS files. I thought I would have to replicate the entire theme in a different directory? Including creating all the .tpl.php files and the files that I've pointed to in my template.php file as well.
Not only that, but I guess my main concern was having to have all the different blocks available for all the different themes. The last time I tried this, I ended up with over 3500 blocks in the SQL table (87 sections multiplied by about 40 blocks). How do I get around that?
Comment #5
Bèr Kessels commentedplease read http://drupal.org/node/11774
and try once, using only styles.
Bèr
Comment #6
Patrick Nelson commentedBèr,
If you're wondering what that soft "kerchunk" noise is, it's the sound of the penny dropping.
Thanks for pushing me (patiently) to look at that page and sorry for being a pain-in-the-***. I didn't realise that you could do that with themes and have only one set of blocks for them all.
Now, who else can I go annoy.... :)
Regards
Patrick
Comment #7
Bèr Kessels commentedNo problem. One more themer with a littel more insight, adds a lot of value to Drupal as whole. :)
Comment #8
Patrick Nelson commentedIn my case, that's an emphasis on the "little" ;)