pages-cms icon indicating copy to clipboard operation
pages-cms copied to clipboard

Feature: Add page titles to most routes

Open queenvictoria opened this issue 9 months ago • 3 comments

I've found it difficult to navigate the router history while testing a site as every page is titled "Pages CMS".

I've had a stab at creating more meaningful page titles. I've had to disable the page title for the collection/[name] route as it prevented navigation to child routes. And I've not loaded content to get the correct title opting instead for the last fragment of the path. Regardless--I now find this makes navigating back through the history more usable.

queenvictoria avatar Apr 03 '25 18:04 queenvictoria

I've had a quick look, I think I can give it a try later on this week when I prepare the new release. I may reimplement myself as there's been a fair amount of changes to the codebase in the past 2 weeks.

hunvreus avatar Apr 15 '25 01:04 hunvreus

@queenvictoria Much appreciated. Could you rework this PR to be against the development branch? I don't work against main directly.

https://github.com/pages-cms/pages-cms/blob/main/CONTRIBUTING.md

hunvreus avatar May 13 '25 01:05 hunvreus

That's updated thanks @hunvreus . Please note: the first file has been disabled as it causes a router error. I'm not sure why but perhaps you can look: https://github.com/pages-cms/pages-cms/pull/227/files#diff-d6fceb6b2aff384198ff3a4cdcee3948cce4cd0577ec840dab862a32d785e511R2-R4

queenvictoria avatar May 18 '25 19:05 queenvictoria