|
|
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. As an example, we 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` (located under `/block` template directory)
|
|
|
- In the branding block you will need to update this information to the new office
|
|
|
- The line that says, `view.osy_frontpage.page_1` refers to a View that creates the office homepage. See discussion below on Views development.
|
|
|
|
|
|
```
|
|
|
<h1 class="usa-logo-text">
|
... | ... | |