Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comments
Comment #1
fokkezb CreditAttribution: fokkezb commentedThe default front page setting should be fixed in 6.x-1.3
Comment #2
Rob T CreditAttribution: Rob T commentedI 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?
Comment #3
Rob T CreditAttribution: Rob T commentedIt's still not working. 6.x-1.3.
Comment #4
Rob T CreditAttribution: Rob T commentedI 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".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?
Comment #5
Nuno Ricardo Da Silva CreditAttribution: Nuno Ricardo Da Silva commentedHello, I'm facing the same problem with 7.x-1.x-dev version! Anyone found a solution for this issue?
Thanks in advance.
Comment #6
djg_tram CreditAttribution: djg_tram commentedSeems that I never needed it? :-) Now checked and corrected, it was a rather simple problem of bad variable names. It should work as expected now.
Remember that you might need to clear the cache for the front page changes to take effect.
As to the "dev" status mentioned in your e-mail, this is only so because I wanted to collect some feedback before calling it a stable release after the port to D7. Apart from this front page problem, I use it on a couple of sites without apparent problems and if some of you might report back if this is the case for you, too, I'd be glad to release it as 7.x-1.0.
Comment #7
Nuno Ricardo Da Silva CreditAttribution: Nuno Ricardo Da Silva commentedHi dj g_tram! Many thanks, the frontages are working now :) if I eventually find another bug, I'll report to you. Thanks
Comment #8
djg_tram CreditAttribution: djg_tram commentedGlad to hear, I'll close this issue now and start the 1.0 release. If a bug comes up, it will be fixed, after all... :-)
Comment #9
Nuno Ricardo Da Silva CreditAttribution: Nuno Ricardo Da Silva commentedOk, many thanks for your help! :)
BR