Pages with route parameters break page registration. #33

Closed
opened 2023-10-13 11:50:13 +00:00 by oddvalue · 0 comments
oddvalue commented 2023-10-13 11:50:13 +00:00 (Migrated from github.com)

This has already been mentioned in #17 but we have a few pages within our application that have route parameters. One possible solution would be to check whether or not the page should register navigation in RegisterPages:

            if ($page::shouldRegisterNavigation() === false) {
                continue;
            }

If having pages that aren't in the navigation is an intended feature of this package then maybe that could be togglable? Or some way to excluded certain pages added?

This has already been mentioned in #17 but we have a few pages within our application that have route parameters. One possible solution would be to check whether or not the page should register navigation in RegisterPages: ```php if ($page::shouldRegisterNavigation() === false) { continue; } ``` If having pages that aren't in the navigation is an intended feature of this package then maybe that could be togglable? Or some way to excluded certain pages added?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
pxlrbt/filament-spotlight#33
No description provided.