Answers.Body: <p>One way would be to use the <a href="https://verbb.io/craft-plugins/navigation/docs/getting-elements/node-queries#positionedBefore" rel="nofollow noreferrer">positionedBefore</a> query. Let's say <code>Node 2</code> has the ID of <code>1000</code>. Then you would write it like this</p>
  
  <pre><code>{% set nodes = craft.navigation.nodes('main')
      .positionedBefore(1000)
      .all() %}
  </code></pre>
  
  <p>The output would be all nodes before the node with the ID of 1000. In your case just <em>Business Environment</em>.</p>
  
  <p>With <a href="https://verbb.io/craft-plugins/navigation/docs/getting-elements/node-queries#descendantOf" rel="nofollow noreferrer">descendantOf</a> you would get all items within your specified node for example. Just check the documentation an all available <a href="https://verbb.io/craft-plugins/navigation/docs/getting-elements/node-queries" rel="nofollow noreferrer">node queries</a>.</p>
  
  <p>To get the ID of the node just use the inspector in the control panel, go to your navigation and look for the <code>data-id="XXXX"</code> of the node element.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-02-20T15:42:31.500Z
Answers.Text: Hi Chris I have the same problem but don't see the data-id anywhere in the inspector not sure why
Answers.UserDisplayName: Steve
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-02-20T15:46:21.730Z
Answers.Text: Not to worry I found it using node.id :))
Answers.UserDisplayName: Steve
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-12-22T15:04:18.133Z
Answers.Text: What if the criteria for finding a specific node was the value of a custom field?
Answers.UserDisplayName: Sandwich
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-11-21T18:00:01.517Z
Answers.Text: Thanks Chris. Appreciate the help.
Answers.UserDisplayName: Jason
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-11-21T16:06:12.377Z
Answers.LastActivityDate: 2019-11-21T16:06:12.377Z
Answers.UserDisplayName: Christopher Dosin
Body: <p>Good morning and thank you in advance. I have one Verbb navigation called main. Underneath that, I have three nodes (see image). Under those nodes are regular links. I want my template to pull only the links from a specific node (Business Environment) under the main navigation, how would I go about doing that?</p>
  
  <p>I know this is the code to get all nav: 
  <code>{% set nodes = craft.navigation.nodes('main').all() %}</code> but how would I access just Business Environment?</p>
  
  <p><a href="https://i.sstatic.net/qspvi.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/qspvi.png" alt="Verbb Naviation Setup"></a></p>
  
Tags: <craft3><plugin-navigation>
Title: Verbb Navigation Plugin Assistance needed
ThreadText: # Verbb Navigation Plugin Assistance needed
  
  (Asked by: username_0 on 2019-11-21)
  
  Good morning and thank you in advance. I have one Verbb navigation called main. Underneath that, I have three nodes (see image). Under those nodes are regular links. I want my template to pull only the links from a specific node (Business Environment) under the main navigation, how would I go about doing that?
  
  I know this is the code to get all nav:
  `{% set nodes = craft.navigation.nodes('main').all() %}` but how would I access just Business Environment?
  
  [![Verbb Naviation Setup](https://i.sstatic.net/qspvi.png)](https://i.sstatic.net/qspvi.png)
  
  **Tags:** craft3, plugin-navigation
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2019-11-21. Score: 1 | Accepted answer
  
  One way would be to use the [positionedBefore](https://verbb.io/craft-plugins/navigation/docs/getting-elements/node-queries#positionedBefore) query. Let's say `Node 2` has the ID of `1000`. Then you would write it like this
  
  ```
  {% set nodes = craft.navigation.nodes('main')
      .positionedBefore(1000)
      .all() %}
  
  ```
  
  The output would be all nodes before the node with the ID of 1000. In your case just *Business Environment*.
  
  With [descendantOf](https://verbb.io/craft-plugins/navigation/docs/getting-elements/node-queries#descendantOf) you would get all items within your specified node for example. Just check the documentation an all available [node queries](https://verbb.io/craft-plugins/navigation/docs/getting-elements/node-queries).
  
  To get the ID of the node just use the inspector in the control panel, go to your navigation and look for the `data-id="XXXX"` of the node element.
  
  > **Comments:**
  > **username_0**: Thanks Chris. Appreciate the help.  
  > **username_2**: Hi Chris I have the same problem but don't see the data-id anywhere in the inspector not sure why  
  > **username_2**: Not to worry I found it using node.id :))  
  > **username_3**: What if the criteria for finding a specific node was the value of a custom field?  
  
  ---
  
  