Java Virtal Machine.net

[ News ] rss

February 01, 2011

Mark Wielaard: New GPG key. Finally created a new GPG key using gnupg. The old one was a DSA/1024 bits one and 8 years old. The new one is a RSA/2048 bits one. I will use the new one in the future to sign any release tarballs I might create. pub 2048R/57816A6A 2011-01-29 Key f...

More »

February 01, 2011

Andrew Hughes: [SECURITY] IcedTea6 1.7.8, 1.8.5, 1.9.5 Released!. We are pleased to announce a new set of security releases, IcedTea6 1.7.8, IcedTea6 1.8.5 and IcedTea6 1.9.5. This update contains the following security updates: The IcedTea project provides a harness to build the source code from OpenJDK6 u...

More »

November/2024
SunMonTueWedThuFriSat
     12
3456789
10111213141516
1718192021 2223
24252627282930
       

[ Archives News
for 'Java Technology' ]

home > news > java technology > not so damned dam handlers

Not so damned DAM handlers

I was asked  recently if/how can someone create or configure the link control in Magnolia dialog so it would allow editor to choose not only the target of the link, but also the repository from which to choose such target. For those not familiar with the link control, right now you have to configure repository from which the control will let you select the target in the dialog definition. More details on controls are here My first response to the question was along the lines of "well, if you want to choose dynamically, just extend the existing control and make it offer the selection".  But just a minute later I got an idea ... what if, there was a way to create such dynamic control already.  In Magnolia 4.1, we have introduced a dynamic DAM handlers. Those handlers  let you choose the source for the asset to be displayed in a page. And isn't the target for the link is just another sort of an asset? Ultimately, you can argue that, but as far as handlers are concerned it doesn't really matter. Plus, we already have a handler that let one choose the resource from the repository - the DMS DAM handler. From there it was only a minute to find out that I can indeed reconfigure the handler to point to any repository and start at any given path.  Granted that handling of the link in the template is a bit more complicated with this solution then using the simple link control, but ultimately it is als...


Date: January, 22 2010
Url: http://www.java.net/blog/rah003/archive/2010/01/22/not-so-damned-dam-handlers


Others News

©2002-2019Java-Virtual-Machine.net website designer | website editor | free website generator | bootstrap menu | free website generator