How to filter items in nav? #5323
-
Hi! This is my first attempt at making a Statamic site. The site is a multi-site for many organizations with multiple languages, so it's a bit complex. Is it possible to filter the nav by a variable on the current page? Like if I am standing on a page that has
I really appreciate any help you can provide. / Jan |
Beta Was this translation helpful? Give feedback.
Answered by
jasonvarga
Feb 22, 2022
Replies: 1 comment 1 reply
-
You can use In your nav tag you can do |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
edalzell
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use
{{ page:nav }}
to refer to the top level one.In your nav tag you can do
{{ if myvariable == page:myvariable }}