You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Collection default sort direction ignored — $params->sortDir defaults to 'asc' (a non-empty string), so $params->sortDir ?: $collection->sortDir always resolved to 'asc', never falling through to the configured direction. Fixed by checking $input->get('sort') to distinguish an explicit URL sort from the default, and using collection sortBy/sortDir as a pair when no URL sort is present.
View icon shown for pages without a template view file — the View action was displayed for any page with a non-empty URL, even when no frontend template file existed, resulting in a 404 on click. Now gated behind $page->viewable().
Add button shown when template disallows new pages — the "Add" button appeared regardless of the template's noParents setting. Added canAddNew() to Collection which returns false when noParents = 1 (no new pages) or noParents = -1 and a page with that template already exists (singleton).
Added
Sort indicator in selector note — the Selector: details block now shows the active sort field and direction inline (e.g. · Sort: created DESC), reflecting either the URL override or the collection default.