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.
By yaredpal on
Hello Every One
I was working on a simple company website and I come across the following problem.
The website I am working on has its own company home page and there are a couple of branches of the company in different locations.
What I want to do is to add specific home pages with (about / contact us and other menus) for each branches of the company which will be displayed when each of the branches is accessed .
I will be looking for any help . Thank you In advance.
Comments
working with menu
@ https://www.drupal.org/docs/7/working-with-menus/adding-a-link-to-a-menu
You can create separate menus
You can create separate menus and can create separate menu items in each menu.
https://www.drupal.org/docs/7/working-with-menus/adding-a-link-to-a-menu
Create specific pages for different branch as per your requirement.
https://www.drupal.org/docs/7/administering-drupal-7-site/managing-content
Go to block section and add the respective menu block to respective page path.
https://www.drupal.org/docs/7/core/modules/block/overview
Its all done.
For your convenience you can follow the structured url like -
www.example.com -- for main website
www.example.com/branch1 --- for 1st branch
www.example.com/branch1/about-us ---- for about us page of 1st branch
Go to Structure > Menus and
Go to Structure > Menus and create separate menus for each page.
Then use blocks to output the menu depending on the page:
https://www.drupal.org/docs/7/core/modules/block/overview