SpinaCMS / Spina

Spina CMS
http://www.spinacms.com
Other
2.19k stars 405 forks source link

Navigations that get added are not showing up in the admin UI #883

Closed leemcalilly closed 2 years ago

leemcalilly commented 2 years ago

I'm setting up my first Spina project and when I try to add the example custom navigation in the docs, it doesn't appear in the admin UI.

theme.navigations = [{
    name: 'main',
    label: 'Main navigation',
    auto_add_pages: true
  }, {
    name: 'mobile',
    label: 'Mobile'
  }]

I did not have this problem with theme.parts or theme.layout_parts. Obviously tried restarting the server and had this same issue in Safari and Chrome. (See attached screenshot).

Screen Shot 2021-11-08 at 5 36 07 PM Screen Shot 2021-11-08 at 5 35 41 PM
Bramjetten commented 2 years ago

The navigations are created as records in the database, you can run rails spina:bootstrap to run the callbacks that create them. Sorry, I should clarify this in the documentation!

leemcalilly commented 2 years ago

Ok. Got it. Thanks!