Skip to content

Conversation

purplespider
Copy link
Contributor

Currently, the Elemental field is just added to the bottom of the field list (or above 'Metadata'). This PR adds the ability to specify a custom "insert before" field name so that the elemental field can be positioned somewhere more suitable on a per class basis.

e.g. when adding Elemental to the Silverstripe blog module, it results in the Elemental field appearing below the Featured Image and Custom Summary fields, which isn't ideal. So this can now be resolved with a new insert_before_field_name config option:

SilverStripe\Blog\Model\BlogPost:
  extensions:
    - DNADesign\Elemental\Extensions\ElementalPageExtension
  insert_before_field_name: 'FeaturedImage'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants