Middlebury

Difference between revisions of "Drupal 8 Office Site Setup"

(Replaced content with "Moved to https://support.gmhec.org/TDClient/47/middlebury/KB/ArticleDet?ID=291 Category:Drupal 8")
Line 1: Line 1:
 
+
Moved to https://support.gmhec.org/TDClient/47/middlebury/KB/ArticleDet?ID=291
== Create the Office Footer ==
 
 
 
In the production site, before cloning to development:
 
 
 
#Navigate to /admin/structure/block/block-content
 
#Click '''+ Add custom block'''
 
#Click '''Footer'''
 
#For the '''Block description '''field value, type '''Name of Office Footer'''
 
#Click '''Save'''
 
 
 
== 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'''
 
 
 
== Create the Newsroom Vocabulary ==
 
 
 
This step is only needed if the office is going to have a newsroom.
 
 
 
#Navigate to /admin/structure/taxonomy
 
#Click '''+ Add vocabulary'''
 
#For the '''Name''' field value, type '''News Categories - 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'''''
 
#If the office has a newsroom, also assign the permissions '''''News Categories - Name of Office'': Create terms''', '''''News Categories - Name of Office'''''<b>: Delete terms</b>, and '''''News Categories - Name of Office'': Edit terms'''
 
#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'''
 
 
 
&nbsp;
 
 
 
== 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 Newsroom 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'''
 
#If the office has a newsroom, click '''Manage fields''' to the right of the Story type
 
#Click '''Edit''' to the right of the '''Categories''' field
 
#Under '''Vocabulary '''check the '''News Categories - Name of Office''' checkbox
 
#Click '''Save settings'''
 
 
 
== 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'''
 
 
 
 
 
== Set up the Left Navigation Block ==
 
 
 
#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'''
 
 
 
== Set up the Footer Block ==
 
 
 
#Navigate to /admin/structure/block
 
#Click '''Place block''' next to '''Footer'''
 
#Click the '''Place block''' button to the right of '''Name of Office Footer''' in the list
 
#Uncheck the '''Display title''' option
 
#In the '''Visilibility''' section under '''Pages''' add this one line 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'''
 
 
 
== 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'''
 
 
 
 
[[Category:Drupal 8]]
 
[[Category:Drupal 8]]

Revision as of 13:34, 11 May 2022

Powered by MediaWiki