I’m planing to have 1 extra independent sites using the multi-site set up.

Can I have splash pages for each of those sites too?

This is what it says: The setup for a configuration such as this would look like the following:

sites/default/settings.php <<< My default site
sites/example2.com/settings.php <<< My second site

So if I wanted a splash.php (or index.php, whichever) how do I do this? Where do I actually put this php file so that visitors go there to that page first.

[edit -sp: added code tags... the little <'s get interpretted as html comments and the filters won't display the rest.]

Comments

jason342’s picture

Why didn't all of my post topic show here? everything seems to disappear?

I've tried and tried, I'll give up posting it, it just won't show :(

catch’s picture

You almost certainly need to use the code tags

<code>the code you want to quote< /code>

sepeck’s picture

see Front Page module for a way to accomplish this unless I am reading it wrong.

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide

jason342’s picture

Well I just want a splash page that is not part of drupal, so I do not want to add modules to achieve this, I just would like my own .php splash page.

I can achieved this for the primary default site by installing drupal in a directory, and having index.php (as my splash page) which is located in the main public_html.

But how do I do this if I have multi-site set up for one of my site, where do I put a splash.php, so that users are diercted to the splash first when visiting mysite2.com?

catch’s picture

If you have a multi-site setup, you're virtualising your directory structure, so don't have an extra root directory to put an index.php file in - why not try front_page.module and see if it works? It allows for non-themed splash pages.

If you really don't want to use the module designed specifically for this purpose, then you may as well run three seperate installs.

jason342’s picture

Can front_page.modules work with multi-sites?

I'm sure it will work with the default primary sites, but would they work with the multi sites?

Also, can I modify them as i please, put in iframes and php codes?

catch’s picture

http://drupal.org/project/front

I've used it on multisite yes, although only for one of the sites.

install it switch it on (have to switch it on in the admin panel for all three sites). put some test php in there once you've gone to admin/settings/front_page to allow php. See if it works. If it doesn't, go to admin/modules and disable it, you've lost nothing.

jason342’s picture

So it may or may not work, if I put php codes in it?

I can't test it because I am struggling to install drupal as we speak, but that’s a whole another topic.

I just want to know should I bother with drupal if I can't have a spalsh page where it allows me to have php codes in it + Iframe.

Is it a plain splash page? Do you(anyone) know any of example drupal sites with front page modules?

catch’s picture

If you read the module page I linked to it states clearly that you can enter php code and any html you like.

"# Have a splash front page to your drupal site that is different from your default layout you can have a full HTML/Flash/PHP splash page that points to a different stylesheet/layout from the default theme you are using. Or you can simply display a special message within your default theme."

http://libcom.org

mennonot’s picture

The Front page module works for me when using multisite. I did not need to switch it on for the other site as suggested here.

I had some problems getting it working because I didn't catch the instructions that "front_page" needs to be inserted into the "Default front page" field at admin/settings/site-information

This refers to the 5.x-1.9 version of the Front Page module.