mirror of
https://github.com/processwire/processwire.git
synced 2025-08-23 23:02:58 +02:00
Fix issue processwire/processwire-issues#695 change order of listable() call in ProcessPageList::renderNavJSON so that one could make an viewable/editable page non-listable in the tree nav dropdown
This commit is contained in:
@@ -530,13 +530,13 @@ class ProcessPageList extends Process implements ConfigurableModule {
|
|||||||
$url = '';
|
$url = '';
|
||||||
$editable = false;
|
$editable = false;
|
||||||
|
|
||||||
if($page->editable()) {
|
if(!$page->listable()) {
|
||||||
|
continue;
|
||||||
|
} else if($page->editable()) {
|
||||||
$url = $page->editUrl();
|
$url = $page->editUrl();
|
||||||
$editable = true;
|
$editable = true;
|
||||||
} else if($page->viewable()) {
|
} else if($page->viewable()) {
|
||||||
$url = $page->url();
|
$url = $page->url();
|
||||||
} else if(!$page->listable()) {
|
|
||||||
continue;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$numChildren = $id > 1 ? $page->numChildren : 0;
|
$numChildren = $id > 1 ? $page->numChildren : 0;
|
||||||
|
Reference in New Issue
Block a user