Jump to content

Pages Tree: Group Pages by Template Type?


ryanlath
 Share

Recommended Posts

Let's say I have a page that has multiple allowed children pages with different templates:

Product 

 - User Reviews

 - Documents 

 - Options

In the Pages Tree view "User Reviews", "Documents", "Options" are all listed/jumbled together. 

One way I've thought of would be to make dummy container pages for each template for each product, but that seems wasteful/inelegant.

Is there some option so they are grouped by template type?   Is there a module?  Can I override some admin template?  Some PW way of looking at this differently?

Thanks,

Ryan

An illustrative, but irrelevant, example would be in the image below.  Under "Categories" there are two content types: category and basic page.  Can the content types under categories be group separately?

post-2877-0-18975500-1418714326_thumb.jp

Link to comment
Share on other sites

Ok you looking for how to structure your pages/templates/content....here we go:

easy prequel

https://processwire.com/talk/topic/5913-new-to-pw-how-to-structure-your-site/

the main story

https://processwire.com/talk/topic/3579-tutorial-approaches-to-categorising-site-content/

a little sequel

https://processwire.com/talk/topic/4116-best-way-to-structure-a-classifieds-site/

so maybe you have a good reading and finding all about how to structure your pages/templates...

for setup a special view in the backend (for editors) you can use Lister or Lister Pro:

https://processwire.com/talk/topic/5835-lister/

https://processwire.com/talk/topic/7911-lister-pro/

regards mr-fan

  • Like 4
Link to comment
Share on other sites

Yes it is. But you have to do it by yourself. And I think it isn't an easy task for a newbie. Maybe you read upon those links that Mr-fan has provided above? Maybe you will find another solution than to recoding the pages tree.

And BTW: a tree is a tree, it starts from the roots and goes up until it reaches the top. I have never heard about a tree that groups his branches by colors of the leaves or by thickness of the branches. :)

Mr-Fan has pointed you to Lister already.

  • Like 5
Link to comment
Share on other sites

So I guess the solution is dummy pages or modules like comments or pageRatings.  I was hoping there was something more elegant.

BTW:  I've never heard of a tree's branches or leaves being able to be sorted, but we can do that, no?  And once you can sort branches, you might as well be able to group them by similar attributes. 

Link to comment
Share on other sites

Ok next round up....

Horst forgot to link his module ;)

https://processwire.com/talk/topic/4758-release-pagetree-add-new-child-reverse-on-top/

And like Horst wrote - sorting pages for templates in pagetree is not needed if you setup your content and cathegories right.

Maybe you've missed the field dependencies for tagging or combining content that is under different parent-pages but stays together:

https://processwire.com/talk/topic/4323-field-dependencies/

=> give us a concrete example of your problem please.

if you have a basic-page template under cathegories - why this is needed??? cathegories only cathegories....that used on the normal (basic-what-ever-template) pages....with the field dependencies.

if your wanna really different content "blocks" on one page so pagetable module would be interresting.

https://processwire.com/talk/topic/7459-module-pagetableextended/

"dummypages" make no sense - don't waste energy to achieve something that could be done in an easy way. Make your problem as clear as you can instead running into a one way - i think here is always a helping hand that try to explain the things until you say aha......

^-^

regards mr-fan

  • Like 2
Link to comment
Share on other sites

This is something i'm also missing. And I think most of you don't get what ryanlath means:

Sometimes it's just a waste of time to create special "folder" templates just to structure the information in the page tree (especially if they need different icons to distinguish them easier). It would be great to have some sort of pre defined "folder" or "strucure" element that doesn't (necessarily) create an url-slug.

Example: I always create a template called "folder" (sometimes even 10+ just for the icons) and on the root of the page tree there are 2 or 3 folders like "meta" (containing legal information, contact...), Data (containing PageTable items), [...]. Those folders wouldn't need their own url-slug but i don't want their contents to "mess up" my page tree. This is just a matter of keeping things easy to navigate (in the backend) rather than grouping information in a semantic way.

  • Like 3
Link to comment
Share on other sites

  • 1 month later...

Hey felix, did I miss something or what icons are you taking about here? Is there actually a way to assign icons to templates?

Regarding usability and as pages could be a thousand things like actual viewable pages, folders or partials, it would be really, really great to be able to display a font awesome icon in front of the page names in the page tree. Could be a document icon as default, but e.g. a globe for a subpage that is accessible through an own domain or subdomain. It would make even more sense to me than having icons displayed next to input fields, as they come with a specific label, description and appearance. 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...