Skip to content

Instantly share code, notes, and snippets.

@derralf
Created July 3, 2019 10:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save derralf/e92b0b648598ae1329091191d819f4bb to your computer and use it in GitHub Desktop.
Save derralf/e92b0b648598ae1329091191d819f4bb to your computer and use it in GitHub Desktop.
silverstripe-elemental: break cascading publishing / owns
# ==================================================================================
# Do not automatically publish all the individual elements when publishing the page
# Allow published and unpublished items on a page
#
# see:
# Disable Cascade-publishing of Element in ElementalArea
# https://github.com/dnadesign/silverstripe-elemental/issues/681
# or:
# QUESTION - On Page save&publish, it publishes all elements...
# https://github.com/dnadesign/silverstripe-elemental/issues/205
# ==================================================================================
---
Name: elementalownsreset
After: elemental
---
DNADesign\Elemental\Models\ElementalArea:
owns: null
---
Name: elementalowns
After: #elementalownsreset
---
DNADesign\Elemental\Models\ElementalArea:
owns: []
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment