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

Name of Asset is not available via DAM API

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • None
    • DAM API
    • None

    Description

      The Edit dialog in the Assets detail subapp allows editing the "name" property of an Asset, but not the name of the Node. This is saved on the node as the "name" property.
      (A "Rename Asset" action in the browser subapp does allow you to edit the name of the node.)

      But its not possible to retrieve the "name" property via the Asset API's.

      From the Asset object:
      Asset extends Item which has a getName() method.
      From JcrAssetProvider we see that getName returns Node.getName().

      From the AssetMap:
      Niether dublincore nor magnolia Metadata does not contain the name value.
      AssetMap directly contains "name" - but its just the same one the Asset object has.

      Workaround: Currently a templater would have to do something like extract the JCR id from the identifier and grab the actual node directly from the workspace. ( ie cmsfn.contentById(String id, String workspace)

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                Unassigned Unassigned
                czimmermann Christopher Zimmermann
                AuthorX
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:

                  Checklists

                    Bug DoR
                    Task DoD