Emiel
1
In a layout page I defined in the Template Data a variable called page_title:
On a content page using this layout, I defined the page_title in the properties:
However the page title is not updated and stays empty.
When using a static value, like below, the page title is properly set:
The server action I use is returning a value btw, without any errors. Why is this not working with dynamic data from the server action?
1 Like
Emiel
2
Can @Teodor shine a light on this perhaps?
Is there an advantage to doing it this way instead of with the JSON as you described here:
https://community.wappler.io/t/correct-title-and-meta-description-for-spa/9254
ben
5
Using the JSON method will carry the title etc after the page is loaded (client-side rendering).
This method will carry the title as the page is loaded (server-side rendering)
To see the difference between the two, have a look at
Hello!
I’m following step by step your tutorial but on the Layout Page I can’t select the Template Data,
I need to set the Page Propierties “Title” to dynamic value from “page_title” (value created from the Define Template Data)
It only shows me the output data from the “login_restrict” server workflow.