Skip to content

Runtime view templates: generate a read-only view for an entity #5627

Description

@KremnevDmitry

Description

Runtime view templates generate list and detail views for an entity from its metadata, without any source code in the application. There is no read-only counterpart: an application that relies on runtime templates has to hand-write a read view, or keep opening the generated detail view in read-only mode. Read views themselves are introduced in #3833.

Use case

Applications that expose entities through runtime templates — admin-style views, entities coming from add-ons, entities whose UI is not worth hand-writing — need a viewing view for the same entities. Their editing views are generated, so the viewing view being the only hand-written one is an odd gap.

Expected behavior

Runtime view templates should be able to generate a read-only view for an entity, registered under the same id and route conventions as the read views from #3833, so that it is picked up by view resolution, by the read action and by the menu exactly like a hand-written one.

Impact

Entities served entirely by runtime templates get a viewing view with no source code, and the read-view conventions hold uniformly for generated and hand-written views.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions