I’m trying to build a module that adds functionality to Elemental. But because of some the options it needs to override the default templates. I realize these can be added to the theme itself but I’d like it working out of the box before a theme is added. The template inheritance documentation doesn’t seem to help in this case as the example is for the framework, My _config.yml looks like this, but this obviously wrong
--- Name: foundational Before: - 'dnadesign/silverstripe-elemental' - 'dnadesign/silverstripe-elemental-list' --- SilverStripe\Core\Manifest\ModuleManifest: module_priority: - 'thezenmonkey/foundational' - 'dnadesign/silverstripe-elemental' - 'dnadesign/silverstripe-elemental-list'
My template are sitting in namespace/my_module/templates/DNADesign/Elemental/Layout and namespace/my_module/templates/DNADesign/Elemental/Models which works in the Theme directory structure.