In-page Navigation Menu
Custom nodes deployed in boston.gov have a navigation menu which sits below the introduction text on each page.
Requirements
Node: field_components.
Paragraph: field_short_title.
Node: template.
{% if navOutput %}
<div class="sub-nav-trigger drawer-trigger">
<div class="sub-nav-chevron">
{{ sub_nav|raw }}
</div>
Page Sections
</div>
<nav class="topic-nav topic-nav__left">
<a name="section-nav"></a>
{{ navOutput }}
</nav>
{% endif %}How it works
Expected behavior
Locating and creating menu
UX
Making paragraphs compatible
Last updated
Was this helpful?