5 YEARS AGO
Set Menu Options via Velo
Extend an options attribute to the $("Menu") element.
For example:
$("Menu").options = [ { name: "Page Name", url: "/page"} ]
or with dropdown menus
$("Menu").options = [ { name: "Page Name", url: "/page", dropdownItems: [ { name: "Page Name", url: "/page"} ]} ]
There are a few use cases for this feature:
- Dynamically setting navigation depending on user role or other
- Some pages like routers can't be added to current menus
Related:
- Allow router pages to be added to a menu (currently, I get an error: "This link only works on your published site")
By the way, I love the new menu system where you can create different menus for the same site!!
Thanks :)
Pending
API









1 Votes
Top Requests
-
Lorem Ipsum.
-
Lorem Ipsum.
-
Lorem Ipsum.
-
Lorem Ipsum.
Log in to your Wix account to leave a comment
Thanks for posting! Your comment will be shown once it’s reviewed.
Comments
Add your comments and suggestions here.