Hi there,

I'm looking for an option to edit the menu items of the Domain Navigation block. For example I have a site with different subdomains for different cities:

example (-> example.com)
example CityA (-> citya.example.com)
example CityB (-> cityb.example.com)
example CityC (-> cityc.example.com)

Now I want the Domain Navigation menu to just display the name of the city instead of the sitename and also hide the main domain:

CityA (-> citya.example.com)
CityB (-> cityb.example.com)
CityC (-> cityc.example.com)

I tried editing the menu items at "admin/structure/menu/manage/navigation" but this doesn't seem to take effect on the items in Domain Navigation block. What can I do?

Comments

agentrickard’s picture

hook_domain_nav_options_alter() will let you edit the displayed values. See domain.api.php in the download.

bluegeek9’s picture

Component: - Domain Nav » Code
Issue summary: View changes
Status: Active » Closed (outdated)

Drupal 7 in End of Life and no longer supported. We encourage you to upgrade to a supported version of Drupal. For more information, see https://www.drupal.org/upgrade.

//www.flaticon.com/free-icons/thank-you Thank you for your contribution! Your continued support of this project makes other volunteer contributions more sustainable.
There are multiple ways to show appreciation for the work contributed to this project, including:
  • Triaging issues and adding more context to existing issues.
  • Writing documentation or patches for this project.