AlchemyCMS / alchemy_cms

Alchemy is the Open Source Rails CMS framework for the component based web that can be used as classic server side rendered or headless CMS.
https://www.alchemy-cms.com
BSD 3-Clause "New" or "Revised" License
846 stars 315 forks source link

Feature Request: Adding "Pages" as children of Global Pages #620

Closed BenMorganIO closed 10 years ago

BenMorganIO commented 10 years ago

Currently, you can add child pages for static pages. For global pages, I don't believe this is an option.

When a page is added to a global page, I'm hoping that this can be a global page that would nest into the current page.

This would be useful when you need a high amount of regression for the user when it comes to page layouts.

tvdeyen commented 10 years ago

I don't really see the need for this. Maybe you could provide an example where this makes sense? Thanks

Anyway. We are currently working on decoupling the pages from the nested tree structure that represents the navigation. Then pages aren't organized in an tree like structure anymore anyway, so your proposed change will probably never make it into the core.

Sorry

tvdeyen commented 10 years ago

@BenMorganIO please understand, that we close this now.

As pages are still organised as a nested set, even the layout pages / global pages (I apologise for the confusing naming), you actually can nest them. You only have to provide a GUI for showing the nesting of pages in the "global pages" view. Overriding https://github.com/magiclabs/alchemy_cms/blob/master/app/views/alchemy/admin/layoutpages/index.html.erb and https://github.com/magiclabs/alchemy_cms/blob/master/app/views/alchemy/admin/layoutpages/_layoutpage.html.erb should do the trick.

Hope you understand