menu

Vev

We are building a powerful and collaborative site builder for teams. The best of no-code and code combined.

Channels
Team

Using menus to update footers on all pages

March 24, 2020 at 9:43am

Using menus to update footers on all pages

March 24, 2020 at 9:43am
We've previously used menus and the useMenu hook as a workaround to create static footers that are the same for each page. With menus now gone, is there another way to create footers so that we don`t have to update each and every one whenever there is a change?

March 24, 2020 at 9:56am
Hey Jostein! Menus aren't gone. To get a MenuForm on your footer widget or section, make sure the Form has a <MenuField name="footerMenu"/> in the form.tsx, and then get the data with useMenu() in your index.tsx :)
Let me know if you need an example for this!
  • reply
  • like
Example would be great
  • reply
  • like
Hey Jostein, you can find the source codes for our Burger Menu widget here: https://gist.github.com/joake/041072c84aacef62dea7f7673e650d5f this should be helpful I hope!
  • reply
  • like

March 25, 2020 at 7:37pm
Definitely helpful! Thanks!
  • reply
  • like

March 26, 2020 at 8:46am
Glad to hear it Jostein! Ask away if you run into any issues :)
  • reply
  • like