Skip to content

Instantly share code, notes, and snippets.

@fortybelowzero
Last active August 31, 2018 12:01
Show Gist options
  • Select an option

  • Save fortybelowzero/f74d553830112a903d663850684466be to your computer and use it in GitHub Desktop.

Select an option

Save fortybelowzero/f74d553830112a903d663850684466be to your computer and use it in GitHub Desktop.
Expression Engine - Construct Plug-in Cookbook

Expression Engine - Construct Plugin

Some useful snippets for the Construct Plugin from buzzingpixel.com that aren't in the documentation

Get sibling nodes for the current page

Useful for if you want to create a list of "also in this section" links:

<ul>
  {exp:construct:nodes tree_id="1" max_depth="1" direct_parent="{construct_route:node_parent_id}"}
    <li>
      <a href="/{construct:node_full_route}" {if '{construct:node_slug}' == '{last_segment}'}class="active"{/if}>
        {construct:node_name}
      </a>
    </li>
  {/exp:construct:nodes}
</ul>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment