Uploaded image for project: 'Magnolia Resources Module'
  1. Magnolia Resources Module
  2. MGNLRES-189

Show meaningful "type" and "format" values for resource files

    XMLWordPrintable

Details

    • Story
    • Resolution: Won't Do
    • Neutral
    • None
    • None
    • None

    Description

      In the Resource files app, the

      • "Type" column denotes the type of resource file. We will differentiate between:
        • "Template" for any type of template
        • "Configuration" for any type of config-by-file resource
        • "Text" for rich and plain text and Word documents
        • "Web resource" for CSS/SASS/HTML/JS and images.
        • "Other" for any other type of file found.
      • "Format" column shows a human-readable version of the file format used by the resource file.
        • We use "YAML", "Freemarker", "Text", "CSS", "Javascript" and the like instead of mere mime-types.

      The resource file type connects with the use cases identified for configuring Magnolia (configuration, resources). It will eventually also be used for filtering in a future list view (see also here). It will also be used as a differentiator for instantiating the Resource files app multiple times.

      It's probably enough to have a simple algorithm that just takes the file extensions into account. I doubt there's much more needed for a first take.

      Note that there's actually a 1:n relationship between "type" and "format" (not 1:1):

      • Template: Freemarker, JSP
      • Configuration: YAML, (Groovy)
      • Web resource: CSS/SASS/LESS, Javascript, HTML, images
      • Text: Text, Rich-text, Word
      • Others: all other type of files not recognized to be among the types above.

      Acceptance criteria:

      • human readable values in "type" and "format" columns
      • "type" can act as set for more than one "format" value, which helps to work with resources from different angles (web dev, admin, configuration)

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                Unassigned Unassigned
                mmuehlebach Michael Mühlebach
                Nucleus
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Task DoD