Bypass automatic case alterations for labels
Hi. I can't figure out how to bypass the case alterations that are happening for resource names.
For example is automatically changed to 'Vat Invoices'.
7 Replies
Spaces are being automatically injected between letters for things like 'FAQ' too.
I've asked about the same issue here https://discord.com/channels/883083792112300104/1149345862451998871
That works for the navigation, but not the resource title.
Yeah, I've changed it separately on each page by overriding getTitle, and have set $label, $breadcrumb and $navigationLabel in the resource.
You don't need to override the
getTitle()
method, just set protected static ?string $title
on the Manage Page.
I have protected static ?string $modelLabel
not $label
on my resources.
Aha
Thanks. I think I was looking at the v2 docs for that