How do I fix the label on the navigation and the breadcrumb?
I want the label on the navigation and the breadcrumb to say "FAQ's" instead of "F A Qs".
Here is what I have tried so far
14 Replies
OK i tried these additionallly
but there is still the resource header that doesn't show correctly.
Resource header is probably ‘title’. If you override the model label method instead of the property you probably won’t have to set all these properties separately.
that is what I thought, but that did not help. Here is what I tried
and here is the result
Hmm. Ok. ‘Title’ should still solve your page header then.
what do you mean by title?
@awcodes ^
Should be a title property too on the resource. Or on the individual resource pages.
Pretty sure those should be based on the labels though.
ok, I have to do this on each individual page to fix the title
on the resource I had to add
and on each other page I had to set the title
Doesn’t sound right to me. I’m surprised the model label methods don’t address that.
ya, setting the modelLabel only fixed the buttons/actions
Yep. Looking at the code now. Title is on the base page and doesn’t reference the resource. Which makes since because the title could be different for Edit, Create, View and List.
They are actually referencing the model label but the titles are wrapped in Str::headline() so you’ll have to override them on each page. Sorry.
At least we know this I need it as well for FAQs 😄
I’m sure a lot of people have this problem with FAQs. 😅
🙂
The string helper in Laravel always assumes that capital letters are new words, so it adds spaces.
If you add the periods like an actual acronym should be grammatically it’d probably work. But that looks almost worse.