Hi Tobias, the requirement is simple: Editor uploads image on author instance using an upload field we defined as dam.fields.damUpload(String).label(String).description(String); where dam is DamConfig dam injected by Blossom to the @TabFactory.
(btw: Class DamConfig is also marked as deprecated, but again, a replacement hasn't been given in the deprecation annotation. Can you tell us (or even better: document in the annoation) what the official new approach to get access to DAM uploads in Blossom tab factories would be?) Anyway: The editor uploads the DAM image, bot for rendering proper HTML according to the templates provided by our frontend developers we also need to know width and height. That's a best practise anyway when embedding images in a website and probably doesn't need to be explained here further. Problem: - Getting width and height on the fly each time the page is rendered, is not a good approach with respect to performance. - Caching that information lazily the first time the page is rendered (and from thereon fetching it from the cache whenever it's needed) makes Anonymous need write access on public instances, which is also not wanted. - Writing it at the time the editor saves the image needs a (preferrably simple) way to hook into that moment. @SaveHandler annotations were the perfect approach for that in Magnolia 4.5, we loved them. Wondering if Magnolia 5 has something like that. Thanks. -- Context is everything: http://forum.magnolia-cms.com/forum/thread.html?threadId=0612f2d8-6e20-4436-a3c9-8e25a64ffb97 ---------------------------------------------------------------- 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> ----------------------------------------------------------------