craftcms / spoke-and-chain

Craft CMS + Craft Commerce demo site.
https://craftcms.com/demo?kind=spokeandchain
BSD Zero Clause License
53 stars 28 forks source link

Restructure Checkout #59

Closed mattstein closed 2 years ago

mattstein commented 2 years ago

Description

This PR converts the Checkout structure section, its pages, and its content to individual singles instead. It also adds a custom element source to emphasize that collection of checkout singles.

While the structure’s visual hierarchy is clear and helpful to look at, other structure section features are more problematic than they are helpful:

The ability to delete entries could be limited with permissions, but Craft doesn’t have the ability to prevent reordering or hide the New entry button for that section.

Existing Structure Section

Proposed Singles

This PR makes each page in the structure above a single instead, using its title to differentiate sub-pages for the editor even though they’ll continue to exist at the same public URLs:

The custom field layouts are maintained, with the exception of an additional Heading field for the last four pages. This makes it possible to keep the on-page heading the same as the current flow. (And if that field is empty, each layout will fall back to the entry title.)