- Add core.entity_view_mode.paragraph.otp_toc.yml to cgov_core/config/install
- Add core.entity_view_display.paragraph.pdq_summary_section.otp_toc.yml to pdq_cancer_information_summary/config/
- add the code in pdq_cancer_information_summary.module to pdq_cancer_information_summary
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {# Render the value of field only if it exists. #} | |
| {% if not node.my_field.isEmpty() %} | |
| <div class="some-class"> | |
| {{ node.my_field.value }} | |
| </div> | |
| {% endif %} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function ldock() { | |
| # Find the root of the repo. Redirect stderr as if we are not | |
| # under a repo an error will occur. | |
| REPO_ROOT=`git rev-parse --show-toplevel 2> /dev/null` | |
| if [ "$REPO_ROOT" == "" ]; then | |
| echo "You must run this command from within a git repo." | |
| return 1 | |
| fi |