Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to add specific templates for ElementalList children #25

Open
christopherdarling opened this issue Apr 10, 2019 · 0 comments
Open

Comments

@christopherdarling
Copy link

Similar to https://github.com/dnadesign/silverstripe-elemental/pull/154/files but the way things work right now you can have

BlockName.ss or BlockName_Elements.ss which would target any DataObject with an ElementArea has_one with the name of 'Elements' not so wouldn't necessarily only apply to elements that are children of ElementalList.

The reason for the need for this is that the block component when used on a page has a container markup that isn't needed when the blocks are used as ElementalList children. Probably slightly overlaps with the kind of scenario in silverstripe/silverstripe-elemental#159

Seems like it would be easy enough to implement this via the updateRenderTemplates hook but maybe worth something including in the module?

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

No branches or pull requests

1 participant