No collections in Navigation? #11487
-
Hi I have tried to create a navigation using the Dashbord. In the settings I selected two collections: Test 1 and Test 2. Added the code to the layout template, like so:
But, the only link I got is "Home". And the Home page is in the Pages collection - which I did not select when creating the nav... (very strange) So, what am I missing ? / Magnus |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 11 replies
-
Have you added any entries to the navigation? |
Beta Was this translation helpful? Give feedback.
-
Are you on the home page when viewing this? If you visit another page with this template on it, does it show that pages title in the nav tag? A common issue when using looping tags is that if there are no results, it will fall back to data from the current page. If the navigation is empty, you will see what I've described. |
Beta Was this translation helpful? Give feedback.
-
from the Docs |
Beta Was this translation helpful? Give feedback.
The navigations feature lets you build custom lists of entries from the collections selected in the config, useful if you want a single list of links that go to entries from different collections (or just random URLs), or want a custom order/subset of entries. If you want a list of links that mirrors a collection exactly you can just use the
nav:collection
tag as you've done above.