-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
None
-
None
-
-
Empty show more show less
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)
- duplicates
-
MGNLDAM-621 Property "name" on JcrAsset is very hard to obtain with ftl only
- Closed