Is there a practical way to change the title of a page?
The release notes suggest using a script, but how is that done? How do I tell the script how to reach each page (like, how do I integrate [url]+[page.props.title])?
And on another note, how do I change/remove the suffix “- Perspective” from the page title? (in this example, I wrote “Ignition - Diagrama Unifilar”, but the suffix was automatically added)
I have changed this title using a text field with a bidirectional binding and on the browser just typing the new name, but I know this is NOT the best way to do so, specially when you have lots of different pages.
I did some further testing using the Text field and these are my results:
- “Diagrama unifilar” had it’s name after I removed the text field (and saved the project).
- From “Diagrama Uniflar” a template page (with it’s unique url [templatepage/:machinename]) was opened for machine A, in which I placed the same text field I had before on “diagrama unifilar”. Said text field read “Ignition base”, however when I changed it, the title was kept for Machine B page’s.
- Once in Machine B, I changed the title again and it remained static back to Machine A AND back to “diagrama Unifilar”.