F
Filament9mo ago
morty

How do I change the heading on a list page?

I've looked all over the documentation for "heading" or "title" but can't seem to figure it out. I've managed to change the slug and breadcrumb successfully, but not this header.
No description
Solution:
omg, I'm so dumb. I was doing this on the resource and not the list page. Problem solved....
Jump to solution
2 Replies
morty
mortyOP9mo ago
Is it the $modelLabel? This seems to work but I don't know if this is the right thing to override? This is what works on a ManageRelatedRecords page:
protected static ?string $navigationLabel = 'Notes';

protected static ?string $title = 'Account Notes';

protected static ?string $breadcrumb = 'Notes';

protected ?string $heading = 'Account Notes';
protected static ?string $navigationLabel = 'Notes';

protected static ?string $title = 'Account Notes';

protected static ?string $breadcrumb = 'Notes';

protected ?string $heading = 'Account Notes';
But for a normal resource page the title and heading don't work.
Solution
morty
morty9mo ago
omg, I'm so dumb. I was doing this on the resource and not the list page. Problem solved.
Want results from more Discord servers?
Add your server