2
Your code should work. Make sure that your Settings → Fields → Navigation has Use this field’s values as search keywords checked.
Once you're sure it is checked, run ./craft resave/entries --update-search-index and it should start working.
Note that instead of searching, you could use:
{% set nav = craft.entries()
.section('pages')
.navigation('...
1
I was thinking about this myself, and I found the following 2 articles which I have been going over. It looks like it is quite possible:
http://craftsnippets.com/articles/using-template-hooks-in-craft-cms
https://docs.solspace.com/craft/freeform/v3/overview/relations.html#overview
The 2nd link has a heading for “Relating more than one element” which looks ...
Only top voted, non community-wiki answers of a minimum length are eligible
Related Tags
entries × 908templating × 118
categories × 90
plugin-development × 64
relations × 62
structure × 53
craft3 × 51
search × 41
assets × 38
matrix × 36
datetime × 33
sections × 33
control-panel × 31
field × 26
filter × 25
ordering × 24
pagination × 22
users × 21
form × 21
url × 21
elementcriteriamodel × 21
localization × 20
entry × 20
entries-field × 20
sorting × 20