slow-yellowS
Refine•3y ago•
6 replies
slow-yellow

Custom Title per page

Hi all, I'm trying to achieve something that should be easy but I'm not able to do.
I've an HEADLESS installation using a simple custom layout structured like

HEADER
- Title
- Menu
CONTENT
-...
FOOTER

Something ideally simple. I want to set the TITLE per custom page

How can I achieve that? useTitle is not working as the Title is set at App level and there's no title prop I can use to customize it.
I could use a Context to create a custom hook like usePageTitle but, how can I set the title value based on the route I'm in and pass it to the layout?

To achieve something that should be basic seems extra-confusing 😦

Thanks!
Was this page helpful?