Join the Webstudio community

Updated 3 months ago

Dynamic Navigation with Automatic Page Links

At a glance

The community member asked if there is a way to have a dynamic navigation that automatically makes a link for each page. In the comments, another community member suggested using a system resource that has information about all pages, and using a collection to create the navigation. However, they noted that this approach may not be very scalable or maintainable, as system variables cannot be used in slots. Another community member pointed out that the system resource does not include page titles, only paths.

Useful resources
There's no way to have a dynamic navigation that automatically makes a link for each page right?
J
3 comments
There's a system resource that has info about all pages. I guess you can use that with a collection. Never tried it but seems like it could work. Downside is you can't use system vars in slots (yet) so wouldn't be very scalable/maintainable.

THis will help: https://github.com/orgs/webstudio-is/projects/11?pane=issue&itemId=81261933&issue=webstudio-is%7Cwebstudio%7C4166
Ah but system resource doesn't have page title IIRC
Yeah just paths
Attachment
image.png
Add a reply
Sign up and join the conversation on Discord