-
Notifications
You must be signed in to change notification settings - Fork 683
Closed
Labels
enhancementimprovements to existing featuresimprovements to existing featuresextensibility 🔌features related to plugin/module devfeatures related to plugin/module dev
Description
Description
Add an event to override rendering of elements.
Proposed Implementation:
- Create a new
RenderElementEventwhich gets called invendor/craftcms/cms/src/base/Element.php
- Allow modification in plugins / modules of the template path:
- Override the template in local module:
modules/mytikilife/src/templates/_elements/tableview/container.twig
modules/mytikilife/src/templates/_elements/tableview/elements.twig

Result:
This hook would not be for the faint of heart and could easily break a lot of functionality. In my use case I'm checking for the source and a few other things before overriding the templates.
One other small change was passing the $source into the $elementType::indexHtml() method so it could be passed into the Event.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementimprovements to existing featuresimprovements to existing featuresextensibility 🔌features related to plugin/module devfeatures related to plugin/module dev





