Repository navigation
v1.5.0
Six improvements: global search links, per-relation titles, "Open as page" on group pages, lazy tab badges in the menu, previous/next that follow the list, and the documentation in Italian. Two behaviour changes, both in "Changed".
Changed
- Previous and next follow the list the user came from (config
record_navigation_follows_list, defaulttrue;shouldRelationNavigatorRecordNavigationFollowList()on a page or resource): its sort, filters, search and tab, up to 100 records, instead of the key order. They stop at the ends of that list. Records not in the list, or with the option off, still walk by key. The list remembers its records in the session only when record navigation is on in the config or on the resource. - "Open as page" opens a relation manager's own page before the page of a relation group it also belongs to (it used to open whichever came first in
getRelations()). A manager that exists only inside a group still opens the group's page.
Added
- Documentation in Italian: wit3.github.io/filament-relation-navigator/it/, from
README.it.md(same sections as the README, checked by a test). - Lazy tab badges stay lazy in the menu: a relation manager with
$isBadgeLazyLoaded(or$isBadgeDeferredon Filament 4.13) gets its menu badge when the menu opens, the others still come with the page. Filament's default is not lazy, so nothing changes unless you set it.RelationNavigatorItem::$isBadgeDeferred, andRelationNavigator::getItems(..., resolveDeferredBadges: true)to get every badge now. Publishedmenu/partials/list.blade.phpviews need updating for it. - Global search links to relation pages (config
global_search_actions:falseby default,true, or the most links per result; resourcehasRelationPageGlobalSearchActions(); relation managerhasRelationPageGlobalSearchAction()or$hasRelationPageGlobalSearchAction).HasRelationPagesadds them togetGlobalSearchResultActions();RelationNavigator::getGlobalSearchResultActions()for resources that define it themselves. - "Open as page" on relation group pages: a relation manager shown on its group's page links to its own page when it has one.
- Title, subheading and breadcrumb of one relation page from its relation manager, given the owner record:
getRelationPageTitle(),getRelationPageSubheading(),getRelationPageBreadcrumb()(static, optional,nullkeeps the default). The menu keeps the tab title.