python - Grouping pages in Mezzanine -
i'm new mezzanine, i've got project , running , can generate customized page
s using own model. i'd group these pages sections (and maybe subsections) this:
section1 subsection1 page1.1.1 page1.1.2 subsection2 page1.2.1 ... section2 subsection1 page2.1.1 page2.1.2 ...
and on. how can attach page
objects specific section , subsection categories (with index page each?) need create model represent these categories , page_processor
generate index or there easier way?
in mezzanine, categories of section1
, subsection1
, etc. need pages well.
say wanted following structure:
movies comedies monty python , holy grail
you first create mezannine page
(or richtextpage
or similar) title "movies", , enter content (even if minimal), such "these movies watch much". page automatically contain links subpages once create them.
to create subpage "comedies", go "pages" under "content" in admin, , click on "add" dropdown menu in "movies" row created (and not "add" dropdown @ top-right of page).
follow same pattern create subpage under "comedies", , on page ("monty python...") you'll enter bulk of content want.
if suits needs, can consider other hierarchical pages nothing more placeholder pages in way, pages place put content related category about.
the overall page structure mirrored in things navigation menu dropdown trees.
changing structure of existing pages:
the mezzanine admin > content > pages page supports drag & drop this.
click page's row near right side (where small up/down arrows are), , drag want go. dotted outline appear indicating dropped page go, move mouse around.
if want move existing page subpage of another, can position dotted outline below intended parent page, , move mouse right or left before dropping page. see dotted outline's position change indented de-dented. dropping while outline indented create subpage.
note right/left mouse adjustment indent/dedent might finicky, depending on mouse's position.