I am experiencing an issue where the $site_slogan variable, available in all page templates, is empty when viewing any domain on a site I'm currently developing using the domain module. I have configured a slogan for all the domains including the primary one, but in all cases the variable is empty. I am using the Zen theme with 2 different customized variations, one for the primary domain and a different one for the various affiliate sites.

The only other reported issue I've found that's remotely related is #469856: Display site slogan in view?, but that's to do with views and doesn't help with my problem. This suggests that nobody else has come across this problem and that therefore it is unique to my site and the way I've set it up. The variable used to contain a value - but it was always the slogan for the primary domain. Not sure what changed between then and now.

I have tried switching to the Garland theme to see if that makes any difference. The slogan variable still does not display anything.

Does anyone have any suggestions of how to resolve this issue?

Comments

agentrickard’s picture

Cannot replicate.

Are you using the Domain Conf module? Have you set any values for non-primary domains with that module?

teknocat’s picture

Yes I am using the domain conf module and have set values with it. I've set values for all the settings it provides for each of the domains.

I just discovered, however, that I can get it to display the site slogan - the correct one for each domain as set in the the domain conf module - by putting "print variable_get('site_slogan','')" in the template instead of "print $site_slogan". So that will work around the issue for now, but if anyone can re-create this and let me know the cause and what to do about it that would be much appreciated.

I am running a dev version (the only version available) of domain menu - not sure if that's a bit buggy and could be interfering somehow.

agentrickard’s picture

Status: Active » Closed (fixed)

It is likely something in the template file, or a preprocess function stepping on the variable. Or you have 'site slogan' unchecked in the theme configuration screen.

This is not a DA issue.