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

fokkezb’s picture

Version: 6.x-2.4 » 6.x-1.x-dev
Status: Active » Fixed

The default front page setting should be fixed in 6.x-1.3

Rob T’s picture

Status: Fixed » Active

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?

Rob T’s picture

It's still not working. 6.x-1.3.

Rob T’s picture

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) with url(variable_get('site_frontpage', 'node')). SOme of the other themes I looked at use check_url($front_page), but simply using that in my theme didn't make any difference. Default front page still wouldn't "grab".

<?php 
if ($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?

Nuno Ricardo Da Silva’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev

Hello, I'm facing the same problem with 7.x-1.x-dev version! Anyone found a solution for this issue?
Thanks in advance.

djg_tram’s picture

Seems 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.

Nuno Ricardo Da Silva’s picture

Hi dj g_tram! Many thanks, the frontages are working now :) if I eventually find another bug, I'll report to you. Thanks

djg_tram’s picture

Status: Active » Closed (fixed)

Glad 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... :-)

Nuno Ricardo Da Silva’s picture

Ok, many thanks for your help! :)

BR