SpinaCMS / Spina

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

Rendering pages colletcion #7

Closed reignmaker closed 8 years ago

reignmaker commented 9 years ago

Hello. How can i render a collection of pages? For example a blog posts.

Bramjetten commented 9 years ago

There's two ways you can do this.

  1. You can create a new resource Blogpost and build a plugin to manage blogposts.
  2. You can simply nest your blogposts as pages under a blog index page. The menu presenter will render your navigation items accordingly.

We usually prefer the second option as it is often sufficient.

teanoon commented 9 years ago

I can't find a way to edit pages' parents. Is it exist in the code? I see you are using ancestry and pages/navigation can display page children properly.

teanoon commented 9 years ago

How about this? https://github.com/denkGroot/Spina/pull/75