Hello Folks,

The more I use Drupal, the more I like it!

Question:

Is there a site variable name for the home page?

I see that I can set this in Admin-->site configuration but I want to override it in my sites/.../settings..php file.

Thanks!

Comments

pbarnett’s picture

Hi!

I did a quick search through the variables table in the database, and it's site_name, if that's any help...

Pete.

neo_silkroad’s picture

Hi Pete,

Thanks.

No, site_name is the ASCII name of the site, like in the case of this site "Drupal".

I need the front page variable (what ever it is!), which is normally "node" ... I want to change it to "taxonomy/term/6" for one domain name, and "taxonomy/term/7" for another domain name (multisite config)

Yours faithfully, Tim

pbarnett’s picture

site_frontpage

neo_silkroad’s picture

Hi Pete,

That's it! Thanks!! Works Great!

(Much better than URL rewriting!!!)

Yea!!!

You are "da man!" :)

pbarnett’s picture

Thanks, but all I did was use phpmyadmin to search the database for the value 'node'; the query it generated was

SELECT *
FROM `mydatabase`.`variable`
WHERE `value` LIKE '%node%'
LIMIT 0 , 30

Easy now you know how :-)

Anonymous’s picture

Change node in the page name you want (taxonomy/term/6 or taxonomy/term/7) in admin/settings/site-information.
Why do you want to use the settings file for this?

Install Devel if you want to see the variables

pbarnett’s picture

Because it's a multi-site configuration, at a guess...

neo_silkroad’s picture

Hi,

Thanks for your reply msn.

The change cannot occur in admin/settings/site-information because I am overriding in the /site/.../settings.php file for a multisite configuration.

Setting in admin/settings/site-information only works for a single site config.

Where is the "Install Devel" file? I searched the site for a site of variables and could not easily find them. thanks!

pbarnett’s picture

Hi again!

Devel module is here if you need it.

In Drupal as in Perl, there's 'More Than One Way To Do It' :-)

Pete.

Anonymous’s picture

I agree: " In Drupal as in Perl, there's 'More Than One Way To Do It' (quote, pbarnett )

I have a multiside setup. In my settings.php the $base_url is uncommented and used.
In my domain manager I make the (sub)domain. The domain manager makes a map in the public server root (public_html), I replace this map with a (same name) symlink, pointed to the Drupal map. Then I setup the multisite in /sites. This is enough for me and the homepage in all the (sub)sites is the page I point to in admin/settings/site-information. That's why I did not understand your question.

But I agree...: There is More Than One Way To Do It

neo_silkroad’s picture

Yes, this is the beauty of Drupal, so many ways!

For example, I am now running four sites using one instance of drupal and one database. I control the blocks with PHP code that checks the domain and includes the block (or not). I use settings.php to set the home page for each domain using tags (taxonomy and vocabulary). Of course, different themes, titles, and slogan, in settings.php.

We control which content goes to which site by using the taxonomy.

Drupal is amazing....

Thanks for all the help and feedback!