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.
I have two pages that have the same aliases but are visible on different domains. This works great.
These domains have different themes and I have a block enabled in both themes. I'm trying to make this block visible only on these two pages. But if I enter alias in the block visibility section, it shows up in the main domain but not in subdomain. I have to enter explicitly node/... to have it show up on subdomain. No big deal but it would be convenient just to have one alias there work on all domains. Or am I doing something wrong?
Comments
Comment #1
agentrickardYou are not doing anything wrong.
The domain-specific aliases are not stored the same way as core path aliases, and so the block module's visibility setting doesn't recognize them.
I don't believe this is possible without creating another mechanism for block visibility. Could Domain Blocks module solve this problem for you?
http://drupal.org/project/domain_blocks
Comment #2
Ron Williams CreditAttribution: Ron Williams commentedContext may be another option to consider.
Comment #3
agentrickard