agentejo / cockpit

Add content management functionality to any site - plug & play / headless / api-first CMS
http://getcockpit.com
MIT License
5.39k stars 523 forks source link

Use Collection "Label" for Page Titles #1461

Open augustsaintfreytag opened 2 years ago

augustsaintfreytag commented 2 years ago

When displaying or editing collections in Cockpit, all UI elements and the breadcrumb navigation correctly display the collection's description by using the value set under "Label" in collection settings. The page title, however, uses a capitalised version of the value set under "Name", the technical name of the collection, instead of its "Label".

When creating collections with the apparent SQLite convention of snake-case (e.g. formatted as cover_art_collection), the page title displays "Cover_art_collection" instead of the collection label, which would be user-readable. The example shot demonstrates the unexpected description used in the page title.

Screenshot 2021-07-28 at 14 46 08