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

Neither of these two are always set. #11

Closed bobdenotter closed 7 years ago

xiaohutai commented 7 years ago

Aha, as of Bolt 3.3, it seems that unneeded parameters are stripped out, that means we probably won't have access to id anymore as the contentlink route defined in routing.yml has its path defined as {contenttypeslug}/{slug}.

Compare 3.2 and 3.3:

This extension is still broken in Bolt 3.3 even with the isset checks, because I currently need that id for getting that hierarchical URL. I think it can be partially solved by making another lookup table from $contenttype/$slug to $contenttype/$id.

xiaohutai commented 7 years ago

We're going to need to re-write more parts for this extension to work with Bolt 3.3.