Difference between revisions of "Drupal 8 Office Site Setup"
Ian McBride (talk | contribs) (Created page with " == Create the Menu Object == #Navigate to /admin/structure/menu #Click '''+ Add menu''' #For the '''Title''' field value, type '''Office Menu - Name of Office''' #Click '...") |
Ian McBride (talk | contribs) |
||
Line 70: | Line 70: | ||
#Set the '''Link''' field value to /group/### where ### is the id of the group for the office | #Set the '''Link''' field value to /group/### where ### is the id of the group for the office | ||
#Click '''Save''' | #Click '''Save''' | ||
+ | |||
+ | [[Category:Drupal 8]] |
Revision as of 16:02, 1 October 2019
Create the Menu Object
- Navigate to /admin/structure/menu
- Click + Add menu
- For the Title field value, type Office Menu - Name of Office
- Click Save
Set up Permissions
- Navigate to /admin/people/roles
- Click + Add role
- For the Role name field value, type Office Editors - Name of Office
- Sort the role so that it appears in the list alphabetically and click Save
- Click the V (down chevron) icon to the right of the new role you've created and select Edit permissions
- Assign it the permission Administer Office Menu - Name of Office
- Click Save permissions
- Click the V (down chevron) icon to the right of the Site Administrator role and select Edit permissions
- Assign it the permissions Administer Office Menu - Name of Office and Assign'''Office Editors - Name of Office role
- Click Save permissions
Set up Content Types
- Navigate to /admin/structure/types
- Click the V (down chevron) icon to the right of the Basic Content type and select Edit
- Click the Menu settings tab and check the Office Menu - Name of Office checkbox
- Click Save content type
- Click the V (down chevron) icon to the right of the Top Leveltype and select Edit
- Click the Menu settings tab and check the Office Menu - Name of Office checkbox
- Click Save content type
Set up the Header Block
- Navigate to /admin/structure/block
- Click Place block next to Header
- Click the Place block button to the right of Office Menu - Name of Office in the list
- Uncheck the Display title option
- Under Menu Levels set Initial visibility level to 1 and Number of levels to display to 2
- Under Advanced Options check the Expand all menu links checkbox and set Fixed parent item to <Office Menu - Name of Office>, ensuring that it is the option with carets around it
- In the Visibility section under Pages add these two lines and ensure that Show for the listed pages is selected:
- /path-to-the-office
- /path-to-the-office/*
- Click Save block
- Sort the block so that it appears in the list alphabetically and click Save blocks
- Navigate to /admin/structure/block
- Click Place block next to Left Navigation
- Click the Place block button to the right of Office Menu - Name of Office in the list
- Uncheck the Display title option
- Under Menu Levels set Initial visibility level to 2 and Number of levels to display to Unlimited
- Under Advanced Options set Fixed parent item to <Office Menu - Name of Office>, ensuring that it is the option with carets around it
- In the Visilibility section under Pages add this one line and ensure that Show for the listed pages is selected:
- /path-to-the-office/*
- Click Save block
- Sort the block so that it appears in the list alphabetically and click Save blocks
Deploy the new Menus
- yes | drupal config_split:export
- git add /config/offices
- git commit -m "offices: Set up menus for Name of Office."
- git push
- deploy_drupal8 -y
- Navigate to /admin/structure/menu in the production site
- Click Edit menu to the right of Office Menu - Name of Office
- Click + Add link
- Set the Menu link title field value to Name of Office
- Set the Link field value to /group/### where ### is the id of the group for the office
- Click Save
- This page was last edited on 1 October 2019, at 16:02.
- Privacy policy
- About Library & ITS Wiki
- Disclaimers