Skip to content

Feature Request Summary #18

@SamuelJennings

Description

@SamuelJennings

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions