I’m trying to overwrite the default template for ElementalContent block.
I’ve added an ElementalContent.ss
to my templates
directory and dev/build?flush with no change.
If I can’t overwrite it, can I remove it and make my own?
I’m trying to overwrite the default template for ElementalContent block.
I’ve added an ElementalContent.ss
to my templates
directory and dev/build?flush with no change.
If I can’t overwrite it, can I remove it and make my own?
Is this the template you’re trying to override? silverstripe-elemental/ElementContent.ss at 4 · dnadesign/silverstripe-elemental · GitHub
If so it needs to be called ‘ElementContent.ss’ (not ElementalContent.ss) and in appropriate directory structure in your templates folder: templates/DNADesign/Elemental/Models/ElementContent.ss
@JonoM ah I see cheers. I mistyped the name in here, it was right in the project.
The change in directory structure got it done.