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

Can't build the tree #22

Open igor-duspara opened 5 years ago

igor-duspara commented 5 years ago

I have installed your extension to my Bolt CMS (3.2.20), because it do what I'm searching for. After install of the extenstion, it can't rebuild the tree.

Screenshot

It would be also nice if you can provide a example config for menu.yml and hierarchicalroutes.twokings.yml for a 3 level hierarchical route.

xiaohutai commented 5 years ago

It works like the highlighted part in: https://github.com/bolt/bolt/blob/3.6/app/config/menu.yml.dist#L9-L21

and specify menu in: https://github.com/xiaohutai/bolt-hierarchicalroutes/blob/master/config/config.yml.dist#L6

Use path and don't use link.


Edit: Lemme check. Something weird is going on

xiaohutai commented 5 years ago

Have you overriden the setcontent_legacy to false perhaps?

It seems that this extension does not work with the non-legacy one.

Settiing it to true should do the trick in a clean Bolt install.

compatibility:
    setcontent_legacy: true