|
When beginning a Department of Commerce (DOC) office migration into the main DOC website, a number of configurations need to be made to build the office's homepage and interior pages. All the supporting codes such as the sass styling and the configuration have already been developed to display the DOC branded look.
|
|
When beginning a Department of Commerce (DOC) office migration into the main DOC website, a number of configurations need to be made to build the office's homepage and interior pages. All the supporting code such as the sass styling and configuration have already been developed to display the DOC branded look.
|
|
|
|
|
|
First, two twig files need to be developed. These files can be found in `/themes/custom/commerce/templates`. The most efficient approach is to copy an existing office twig file and rename it to the appropriate new office. For example I will use OSY's twig files. The following are the set of files that need to be mimicked and renamed.
|
|
First, two twig files need to be developed. These files can be found in `/themes/custom/commerce/templates`. The most efficient approach is to copy an existing office twig file and rename it to the appropriate new office. For example I will use OSY's twig files. The following are the set of files that need to be mimicked and renamed.
|
|
|
|
|
|
1. block--osy-branding-block.html.twig to block--newname-branding-block.html.twig
|
|
1. `block--osy-branding-block.html.twig` to `block--newname-branding-block.html.twig` (located under `/block` template directory)
|
|
- In the branding block you will need to update this information to the new office
|
|
- In the branding block you will need to update this information to the new office
|
|
|
|
|
|
```
|
|
```
|
... | @@ -12,10 +12,10 @@ First, two twig files need to be developed. These files can be found in `/themes |
... | @@ -12,10 +12,10 @@ First, two twig files need to be developed. These files can be found in `/themes |
|
</a>
|
|
</a>
|
|
</h1>
|
|
</h1>
|
|
```
|
|
```
|
|
2. page--osy.html.twig to page--newname.html.twig
|
|
2. `page--osy.html.twig` to `page--newname.html.twig` (located under `/layout` template directory)
|
|
- In the page template you just need to change the name
|
|
- In the page template you just need to change the name
|
|
|
|
|
|
In this new office website, there 3 menus that need to to be developed. The following are the set of files that need to be renamed and menus added based upon the client's specifications:
|
|
In this new office website, there are 3 menus that need to to be developed. The following are the set of files that need to be renamed and menus added based upon the client's specifications:
|
|
|
|
|
|
1. OSY main navigation to Newname main navigation
|
|
1. OSY main navigation to Newname main navigation
|
|
|
|
|
... | | ... | |