If you have an instance of an Asset, you could fetch its ItemKey and from the itemKey you can get both "providerId" and "assetId" In freemarker:
[code][#assign myAssetId = myAsset.getItemKey().getAssetId() /][/code] or [code][#assign myAssetId = myAsset.itemKey.assetId /][/code] However ... not sure when you would use this. Rather indicates a "not ideal" usage of assets. What is your use case? -- Context is everything: http://forum.magnolia-cms.com/forum/thread.html?threadId=f26f3bcb-ffba-4103-9a74-5675dcc060a2 ---------------------------------------------------------------- For list details, see http://www.magnolia-cms.com/community/mailing-lists.html Alternatively, use our forums: http://forum.magnolia-cms.com/ To unsubscribe, E-mail to: <user-list-unsubscr...@magnolia-cms.com> ----------------------------------------------------------------