Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Major update to provide compatibility with latest version of elemental #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

madmatt
Copy link

@madmatt madmatt commented Apr 28, 2018

  • Updates to provide compatibility with silverstripe-elemental
  • Includes extension to make the module work out of the box

…ripe-elemental, and includes extension to make the module work out of the box
@madmatt madmatt force-pushed the pulls/ss4-compat branch from 3508382 to 2b96020 Compare June 7, 2018 11:19
@madmatt
Copy link
Author

madmatt commented Jun 7, 2018

Hey @pitchandtone, any chance of a review of this?

On this branch, the module now works with the latest ^1 of dnadesign/silverstripe-elemental, and includes code to ensure that the module creates skeleton records on creation of a new page type without needing any project-specific code.

Thanks!

@pitchandtone
Copy link

My only concern is this comment "Each page type can be assigned only one {@link Skeleton} object". That's not what I originally had in mind and I suspect will mean that there's some odd coupling between page types and skeletons (blank page types in order to allow another skeleton to be created)

We had imagined a page type could have 2-3 distinct skeletons to choose from, to maintain diversity in the page outcomes. Elemental is trying to maintain rich diverse content rather than locking every page down into a template. Having a 1-1 relationship seems like we're back to a page template approach, rather than something between that and "create anything in any order"

@madmatt
Copy link
Author

madmatt commented Jul 7, 2018

Ah okay, I hadn't realised that. The original code didn't have any way of referencing to a page (I assume this was done in project code maybe) - was there any plans for how this might work?

I'll see what I can do with this, it's likely to involve injecting JS into CMSPageAddController.

@pitchandtone
Copy link

pitchandtone commented Jul 8, 2018 via email

@madmatt
Copy link
Author

madmatt commented Jul 10, 2018

Ah ok - so adding a custom gridfield action & dropdown that appears if there are no elements attached to a page, allowing users to pick from a list of skeletons? That makes sense, I'll look into doing that :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants