Ryan,
Using Gantry v3.2.13, the code change below will hopefully let you do what you're looking for. We don't like and rarely recommend changes to other components, so please test and tread carefully. This works for us in testing, but we don't use a Gantry-based template, so don't know the ins and outs of how this may affect your site otherwise. The idea is to only fix the conflict I mentioned above where a component is specifically setting a template and style to be used instead of the default set within Joomla.. and therefore, shouldn't affect 'normal' use cases.
Anyways.. for the change, if you want to try it.. open the /libraries/gantry/core/gantrytemplate.class.php file.
At line 325, you'll see:
$site = JFactory::getApplication();
$template = $site->getTemplate(true);
$styleId = $template->id;
}Change the bottom line to the following few lines:
$site = JFactory::getApplication();
$template = $site->getTemplate(true);
if (isset($template->id)) // ADD THIS
$styleId = $template->id;
}This code change simply prevents a PHP warning from appearing. Not a big deal.
Further down on line 356, you'll see the following 'money' code-block that needs to be updated:
$site = JFactory::getApplication();
$template = self::getTemplateById($site->getTemplate(true)->id);
$master = $template->params->get('master', 'true');Change that to:
$site = JFactory::getApplication();
if (isset($site->getTemplate(true)->id)) // ADD THIS
$template = self::getTemplateById($site->getTemplate(true)->id);
else // ADD THIS
$template = self::getTemplateById(XXXX); // ADD THIS, SET XXX TO STYLE ID
$master = $template->params->get('master', 'true');In the block above, update the XXX to the ID of the Style you want to use in the Facebook Canvas. This can be found in the admin area, and unfortunately has to be hard-coded here.
These changes will basically default the style to the ID above, if not already set. Joomla will always set the ID by default, so the code above should only affect the case where Joomla hasn't set the ID.. for example, when JFBConnect tries to override the template.
Definitely hope that helps, but if not, let us know. We'd love a review on the JED, but would love getting you going even more!
Thanks,
Alex