Mahjoub
Mahjoub
FFilament
Created by Mahjoub on 11/11/2024 in #❓┊help
Resource as Navigation Parent of Custom page
Solved it, the necessary attributes to set are

protected static ?string $navigationGroup = 'Zeiterfassung & Ausgaben';
protected static ?string $title = 'Übersicht Zeiterfassung';
protected static ?string $navigationParentItem = 'Zeiterfassung';

protected static ?string $navigationGroup = 'Zeiterfassung & Ausgaben';
protected static ?string $title = 'Übersicht Zeiterfassung';
protected static ?string $navigationParentItem = 'Zeiterfassung';
everything else is redundant and results in unwanted behavior
7 replies
FFilament
Created by Mahjoub on 11/11/2024 in #❓┊help
Resource as Navigation Parent of Custom page
@toeknee Could the problem occur because it's a custom page and not a resource?
7 replies
FFilament
Created by Mahjoub on 11/11/2024 in #❓┊help
Resource as Navigation Parent of Custom page
Thanks for the reply. with the attribute set, the custom page is still hidden as sub item
class TimeEntriesOverview extends Page implements HasTable
{
use InteractsWithTable;

protected static ?string $navigationGroup = 'Zeiterfassung & Ausgaben';
protected static ?string $navigationIcon = 'mdi-timetable';
protected static ?string $navigationLabel = 'ZeiterfassungXXX';
protected static ?int $navigationSort = 0;

protected static bool $shouldRegisterNavigation = true;
protected static ?string $navigationParentItem = 'Zeiterfassung';

...
class TimeEntriesOverview extends Page implements HasTable
{
use InteractsWithTable;

protected static ?string $navigationGroup = 'Zeiterfassung & Ausgaben';
protected static ?string $navigationIcon = 'mdi-timetable';
protected static ?string $navigationLabel = 'ZeiterfassungXXX';
protected static ?int $navigationSort = 0;

protected static bool $shouldRegisterNavigation = true;
protected static ?string $navigationParentItem = 'Zeiterfassung';

...
`
7 replies