Skip to content

Add Contextual hints to Formatters to aid in Metadata Display Entity(Twig) editing/discovery/understanding #171

@DiegoPino

Description

@DiegoPino

What?

Would be great if Field Formatters using Twig templates could for Admin users show Contextual links to used/configured Twig templates. That way guess which Template is used would not longer require finding the field/the formatter and its setting.

The formatter itself already has access to its own Configured Twig template. So that can be exposed for an admin or some logged In user with appropriate permissions. On the other hand, this may add delay to the rendering so skipping the logic totally for anonymous users will be needed.

Secondary What

I want to have on Each Metadata Display Entity View/Edit a slow but needed calculation/overview of where the template is being used:

Possible options are:
1.- A View Mode -> Field Formatter
2.-An Exposed Endpoint
3.- A View that uses one of the View Modes where Twig is enabled
4.- A View with a direct Field Formatter when the Twig template can be used

This requires some refactoring, probably adding some annotations for Plugins (Formatters) that use Twig templates allowing so a fast discovery. The key is always the "Formatter" who a formatter is used is the second iteration, Views will follow up based on those 2 previous discoveries

Metadata

Metadata

Assignees

Labels

Field FormatterThe thing that glues the pieces and adds glitterTwigTwig template processingUI driven hintsShow stuff on screen so people have less guessing to doUXLike UI but with an XView ModeMany fields, each one with a formatter that renders your ADOsenhancementNew feature or request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions