I run several different sites off one server, and I want to set it up so that each site can have their own drupal apprearence. How do I set it up so that each site could have their own theme?

For example I have a school site currently using drupal. I want to setup a section of the site to use a different theme with differnet menu choices and all that. The only thing I want to keep is the home link.

I hope that makes sense, still new to this.

Comments

venkat-rk’s picture

That's actually two different questions you are asking- one, having a separate theme for each site and, two, having a separate theme for each section. You can have both on the same site too! Now you know why drupal is so easy to understand ;-)

If you are running a multisite install of drupal, you can just add a separate 'themes' folder to the site you want to change (/sites/site2.com/themes), put the theme there and enable it as the default for that site. Alternatively, you can even install a bunch of themes at /sites/all/themes and then login to your site and choose one of those themes as the default.

Your other question about a separate theme for each section is beyond me as I have never tried it. You can experiment with the taxonomy_theme module, if you are using taxonomy to define several site sections. I think there is also a usertheme and blog theme module that lets you define separate themes for users and blogs respectively. I am not sure about their current status, though.

And you can always define separate themes for each content type (story, page, blog etc) in drupal. Take a look at the Customization and Theming section of the drupal handbooks and you will find quite a bit of help.

----
Previously user Ramdak.

coruscation’s picture

My actual question while poorly asked was answered by your first statment.

If you are running a multisite install of drupal, you can just add a separate 'themes' folder to the site you want to change (/sites/site2.com/themes), put the theme there and enable it as the default for that site. Alternatively, you can even install a bunch of themes at /sites/all/themes and then login to your site and choose one of those themes as the default.

Only problem is I have no idea what that means...I found the sites folder. Inside is a folder called default with a settings.php file in it. Can I make another one and recreate the settings file? I know drupal uses the sql database so is there something I need to do there to make it create a new set of information for the additional website?

Sorry if that's not helping. I just took over the website and I have no real clue how its setup other then its running on drupal and I know how to manage / edit content.

venkat-rk’s picture

I found the sites folder. Inside is a folder called default with a settings.php file in it. Can I make another one and recreate the settings file? I know drupal uses the sql database so is there something I need to do there to make it create a new set of information for the additional website?

To answer this, let us go back to your first post:

I run several different sites off one server, and I want to set it up so that each site can have their own drupal apprearence. How do I set it up so that each site could have their own theme?

How exactly are these sites set up? Are they each a separate install of drupal- meaning, a separate codebase (the drupal install files) and a separate database for each site? Or, when you say "different sites off one server", do you actually mean you have only one drupal codebase, but separate databases for each site?

----
Previously user Ramdak.

coruscation’s picture

How exactly are these sites set up? Are they each a separate install of drupal- meaning, a separate codebase (the drupal install files) and a separate database for each site? Or, when you say "different sites off one server", do you actually mean you have only one drupal codebase, but separate databases for each site?

Here is what I have:

Server

Site 1 - This is a public school site
Site 1a - This is the alumni foundation site

Site 2 - This is the site for the city the school resides in
Site 2a - Site 2** - This is an online listing for all of the businesses in town, each with their own page
Site 2b - This is an electronic new section that the city manager sends me info for

What I have right now is the school site running on drupal.

What I would like to do is set up a drupal install for the alumni foundation, also set up a drupal install for the city, online business listing, and electronic news section.

Site 1 and Site 1a are in the same folder 1a is a subfolder of 1.

Site 2 and 2a, 2b are in a seperate folder from site 1, and 2a, 2b are subfolders for Site 2.

Does that makes sense?

venkat-rk’s picture

What I have right now is the school site running on drupal. What I would like to do is set up a drupal install for the alumni foundation, also set up a drupal install for the city, online business listing, and electronic news section.

When you say you want to set up a drupal install for the alumni foundation, the city, online business listing etc, you mean you want them to be separate web sites, right?

Site 1 and Site 1a are in the same folder 1a is a subfolder of 1. Site 2 and 2a, 2b are in a seperate folder from site 1, and 2a, 2b are subfolders for Site 2.

What exactly do you mean by Site 1 and Site 1a are in the same folder? You mean you already have a drupal codebase at 1a? Or do you mean that if 1 is the public school site at www.publicschool.org, you want 1a, the alumni site to be at www.publicschool.org/alumni site? That is, drupal running from a subdirectory?
----
Previously user Ramdak.

coruscation’s picture

First sorry for the delay, I just got back from vacation. Now on to business.

if 1 is the public school site at www.publicschool.org, you want 1a, the alumni site to be at www.publicschool.org/alumni site? That is, drupal running from a subdirectory?

Exactly :)

In answer to your first question. Yes, I would like them to be seperate sites if possible. I want to be able to modify them independently of one another. So the school site has an apperance the almuni site has a different apperance, and so on with each of the sections of the city site.

Is that possible?