Problem/Motivation

When I switch subdomains, the SiteName changes; but the site slogan remains the same as the primary.

  1. Install Domain Access
  2. Created subdomains with unique slogans
  3. Placed the following code in a block:
    <h1><strong><?php print ($GLOBALS['conf']['site_name']); ?></strong></h1>
    <h2><strong><?php print ($GLOBALS['conf']['site_slogan']); ?></strong></h2>

I originally thought it was a theme, but even switching to Bartik 7.22 (which places the Sitename and Slogan on top by default) renders the same results. The site I'm working with is at http://kingdomwebhosting.com

Comments

agentrickard’s picture

Category: bug » support
Status: Active » Postponed (maintainer needs more info)

Please list the steps you are taking to create the unique slogans.

agentrickard’s picture

Issue summary: View changes

Just to clarify that the issue is not related to the code I wrote.

joebest’s picture

Method A: Individually

  1. admin/structure/domain
  2. http://kingdomwebhosting.com/en/admin/structure/domain/create
  3. http://kingdomwebhosting.com/en/admin/structure/domain/view/2/config
  4. Write the Site Slogan

Method B: Batch Updating

agentrickard’s picture

Status: Postponed (maintainer needs more info) » Active

I have it working fine. Things to check:

* Make sure the PHP module is enabled
* Make sure the Input format of the block is set to PHP Code
* Use the provided Domain access server information block to ensure that you are really on the domain you think you are. (If the server is misconfigured, this can happen).

joebest’s picture

I did everything as suggested but no success.

  • The PHP Module is on
  • I'm using the PHP input format (notice that the Site Name is changing but the Slogan doesn't
  • The Domain access server indicates i'm on the primary domain. This is where i'm doing the batch updates for the slogans

Can it be a hosting provider issue?

agentrickard’s picture

Well, if you're on the primary domain, of course you won't see the slogan changes because they are loaded contextually based on the active domain. You would have to navigate to a second domain to "see" the slogan change.

Use the "Domain switcher" block to test.

agentrickard’s picture

If, however, you switch from example.com to one.example.com and the Server Info block still says you are on the primary domain, you either have your domains misconfigured or a problem with your host's handling of DNS.

joebest’s picture

Will verify and get back to you. I'm trying this on both a host provider as well as a on local MAMP server and I get the same results. I have a website, frutodelavid.org using Domain Access 3.6 and the slogan is correctly displayed by subdomain with the mentioned PHP code inside a block.

agentrickard’s picture

I have it working fine locally against 7.x-3.x. Nothing has really changed that would affect this behavior.

agentrickard’s picture

Status: Active » Closed (cannot reproduce)
agentrickard’s picture

Issue summary: View changes

mistake writing website
error: kingdomwegmosting.com
correction: kingdomwebhosting.com