Is there a way to get a list of all the static pages used on a site (with their attributes) for use in a template? I'd like to build my own sitemap and search results pages without using a plugin. Am using the Static Pages to create content. Just want to be able to get a list of all the static pages on my site in the order that they are arranged (hierarchy). Going through the menus code does not give me enough information - for example I'd like a list of pages and their meta_description and content.
$theme = \Cms\Classes\Theme::getActiveTheme(); $pages = \RainLab\Pages\Classes\Page::listInTheme($theme, true);
1-2 of 2