Is your feature request related to a problem? Please describe.
The current layout implementation across FairDM leaves little room for customizability. At the moment, most views come with a sections attribute that allows us to overwrite parts of the template with a new django-cotton component for view subclasses. The problem is that it is not possible to extend these template components using normal Django template syntax (e.g. block tags). Instead one must completely override the template section which is less flexible for plugins/3rd parties that want to add small features to parts of a page.
Describe the solution you would like
Rather than declaring cotton components in the sections attributes dict, we use regular Django templates and pass the required variables via a custom template tag. Using normal templates will allow 3rd parties to progressively extend various parts of the layout.
Is your feature request related to a problem? Please describe.
The current layout implementation across FairDM leaves little room for customizability. At the moment, most views come with a
sectionsattribute that allows us to overwrite parts of the template with a newdjango-cottoncomponent for view subclasses. The problem is that it is not possible to extend these template components using normal Django template syntax (e.g. block tags). Instead one must completely override the template section which is less flexible for plugins/3rd parties that want to add small features to parts of a page.Describe the solution you would like
Rather than declaring cotton components in the sections attributes dict, we use regular Django templates and pass the required variables via a custom template tag. Using normal templates will allow 3rd parties to progressively extend various parts of the layout.