This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

Incremental
Incremental

Hello,

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.

Incremental
Incremental

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 ?

Thanks

Last updated

cpuhouse
cpuhouse

Hi @Incremental. Give a look at this theme we are developing: https://github.com/cpuhouse/flexivue.git

1-3 of 3

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.