I'd like to know if it's possible with vue.js to have a router with dynamic routes instead of static ones, to render a menu based on October Static Menu items and Pages ?
Thanks for help.
Well, I came to the point I had to create a route in a plugin, generating a JSON multilevel structure.
To generate this JSON with pages and subpages, I used :
$theme = \Cms\Classes\Theme::getEditTheme(); $pageList = new \RainLab\Pages\Classes\PageList($theme); $treePageList = $pageList->getPageTree(true); return $treePageList;
But the JSON returned contains full page details. How to have only "Pages" and "Subpages" titles and links ?
1-3 of 3