xiaohutai / bolt-hierarchicalroutes

[Bolt Extension] Hierarchical content using `menu.yml` for Bolt CMS
https://market.bolt.cm/view/twokings/hierarchical-routes
MIT License
7 stars 3 forks source link

[Twig] Have `getSiblings` / `getParent` / `getParents` / `getChildren` functions to work properly with the contenttype rules #3

Closed xiaohutai closed 6 years ago

xiaohutai commented 7 years ago

If possible

xiaohutai commented 7 years ago

I'm not sure contenttype rules are nice to have tbh. They're more or less a nuisance to me.

It kind of makes sense, but it's a step extra to get it working with the current features (such as the tree view).

This may be an example:

For smaller sets it's may be easier to use the query rule, and do:

    - type: query
      params:
        query: "projects"
        parameters: { limit: 100, order: 'title' }
        parent: "page/2"

    - type: query
      params:
        query: "members"
        parameters: { limit: 100, order: 'title' }
        parent: "page/3"

    - type: query
      params:
        query: "blog"
        parameters: { limit: 1000, order: '-datepublish' }
        parent: "page/3"
xiaohutai commented 7 years ago

Moved this to later. This feature makes it a bit less elegant and needs way more checks to get it right. Not even sure If I'm going to do this one.

xiaohutai commented 6 years ago

Wontfix for now. I think contenttype rules are a bit non-transparant.