By neo_silkroad on
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
Site variable name
Hi!
I did a quick search through the variables table in the database, and it's
site_name, if that's any help...Pete.
Hi Pete, Thanks. No,
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
This one?
site_frontpageHi Pete, That's it!
Hi Pete,
That's it! Thanks!! Works Great!
(Much better than URL rewriting!!!)
Yea!!!
You are "da man!" :)
Thanks, but all I did was
Thanks, but all I did was use phpmyadmin to search the database for the value 'node'; the query it generated was
Easy now you know how :-)
Change node in the page name
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
Because it's a multi-site
Because it's a multi-site configuration, at a guess...
Hi, Thanks for your reply
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!
Devel module
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.
'More Than One Way To Do It'
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
Yes, this is the beauty of
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!