Gottwik / Enduro

Minimalistic, lean & mean, node.js cms
http://www.endurojs.com/
MIT License
690 stars 120 forks source link

How to build a page menu with admin interface? #173

Open RedHatter opened 6 years ago

RedHatter commented 6 years ago

I'm building a multi-page site with enduro and would like to have a dynamic menu so that newly created pages are automatically added. I could do this with a helper as described in How to Make a Blog but I would also like a interface in the admin panel to manage said menu. So a user could reorder items, hide items, etc. I haven't yet been able to come up with a working scheme... Is something like this possible with enduro?

I really like enduro so far but if I can't get menu management working that would unfortunately be a deal breaker.

CosmoMyzrailGorynych commented 6 years ago

@RedHatter you could put navlink settings inside generator pages and add the links inside your templates. This thing is achieved in my Enblog theme.

So I have navigation_title and display_in_top_navigation inside a page template: link, a hbs helper to get all the links: link, and a simple loop in a header: link

The only thing is that such links cannot be sorted, and there is no centralized panel to customize that. But it is certainly possible to do, it just needs another configuration.

Ezra-Siton-UIX commented 6 years ago

@CosmoMyzrailGorynych - could you add tutorial about this issue? This is useful in most sites. I also think NAV widget (Like WP idea for this) - is very useful.