Skip to content
This repository

Default page title #87

Closed
richard-jones opened this Issue · 5 comments

2 participants

Richard Jones markmacgillivray
Richard Jones
Owner

The default page title is the url path to the page, which is not really the title you'd want (e.g. /news/the-jorum-paradata-enhancement-project), and it is easy to forget to update it.

Perhaps when creating the page ask the user for the title, or pull it out of the body as it ought to be the first header text.

markmacgillivray

using page title as default header text does not work well which is why i did not copy that functionality from wordpress. it puts the display of the header beyond the control of the typical user. however, yes we could trigger a warning on new page creation to provide a title. could also default the title to a neatened version of the end of the url or something.

Richard Jones
Owner

Yeah, I don't like the wordpress functionality - I'm thinking of the page title in the navigation, etc. So you would always be responsible for giving your page a header, but either you must provide a title to go in the navigation, or the navigation should snaffle the header you give the page.

Richard Jones
Owner

I've now updated the mechanism which generates a page title from the url. It splits the url by "/" and gives you the last portion of the url as the page title for use in the navigation. This not only fixes the issue of having pages with names like "/news/the-jorum-paradata-enhancement-project" (it would become "the-jorum-paradata-enhancement-project"), it also fixes the leading "/" which appears on the names of top-level pages (e.g. "/projects" would get the name "projects" not "/projects" as before)

Richard Jones
Owner

Mark to fix the default page title further when the "create new page" option is selected from the menu. reassigning

markmacgillivray

Closing in reference to #63

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.