Listing related pages [bludit3]
Posted: Fri Sep 21, 2018 3:19 pm
Looks like theres a bug in one of the functions responsible for pages.
I'm trying to list pages related to page I'm currently on. I'm doing this by selecting the category and excluding current page.
used to work in Bludit 3RC but now it throws out Uncaught Error: Call to a member function title() on boolean in . What changed?
I'm trying to list pages related to page I'm currently on. I'm doing this by selecting the category and excluding current page.
Code: Select all
if ($page->category()) {
$exclude = $page->title();
$categoryKey = $page->categoryKey();
$category = getCategory($categoryKey);
foreach ($category->pages() as $pageKey) {
$page = buildPage($pageKey);
if ( $page->title() == $exclude) {} else {