Uploaded image for project: 'Magnolia DAM Module'
  1. Magnolia DAM Module
  2. MGNLDAM-621

Property "name" on JcrAsset is very hard to obtain with ftl only

    XMLWordPrintable

Details

    • Story
    • Resolution: Duplicate
    • Neutral
    • None
    • 2.1.1
    • None
    • None

    Description

      DAM app (based on jcr assets) has a jcr property "name". To obtain the property with ftl you must fetch the jcr node first, otherwise - directly on the asset - seems impossible.

      When adding an asset, 2 properties are set automatically with the name of the node (actually with the name of the uploaded image/file).
      See screenshot.
      The second property - on the UI named "Asset name" - saved as jcr property "name" can be changed without changing the node name. However, to read that property with ftl is cumbersome. ...
      Operating on the asset directly always returns the node name but not the value of the jcr property "name".

      To improve the situation - the implementation of JcrAsset#getName() could be changed. Currently JcrAsset#getName() always returns the name of the node. Instead the method should try to return the jcr property "name" - if failing fall back to the file name.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                Unassigned Unassigned
                cmeier Christoph Meier
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Task DoD