Default Front Page
zadiggle - April 3, 2008 - 07:52
| Project: | Virtual Sites |
| Version: | 6.x-1.x-dev |
| Component: | Miscellaneous |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
When my condition is met the virtual site kicks in but I cannot get it to go to the proper default page. I am trying to get it to the node that is a book page so it shows the users that menu.

#1
The default front page setting should be fixed in 6.x-1.3
#2
I am using 6.x-1.3 on a fresh Drupal 6.2 install. I created a virtual site with a condition, and the path (my condition) displays the correct theme.
I've set the default to be that virtualsite+condition path. I expected that - with the default front page set to that same path - that clicking on my virtual site's logo would bring me to the default front page. But it doesn't. It leads me to the main site's front page.
Is the default front page supposed to become the logo link within that particular virtual site. If not, what is the default front page used for?
#3
It's still not working. 6.x-1.3.
#4
I think I got it to work, after poking around the module code and then reading this post: http://drupal.org/node/76005
Essentially, in the code above from my theme's page.tpl.php file, I replaced
check_url($base_path)withurl(variable_get('site_frontpage', 'node')). SOme of the other themes I looked at usecheck_url($front_page), but simply using that in my theme didn't make any difference. Default front page still wouldn't "grab".<?phpif ($logo || $site_title) { print '<h1><a href="'. url(variable_get('site_frontpage', 'node')) .'" title="'. $site_title .'">';
if ($logo) { print '<img src="'. check_url($logo) .'" alt="'. $site_title .'" id="logo" />'; }
print ($logo ? '' : $site_title_html) .'</a></h1>';
}
?>
In my limited testing, the default front page feature of Virtual Sites is working as I expected it to work with the.
Is there a more appropriate method, or is my code replacement hazardous to my site in some way?