Hi everyone,

I have a problem converting UUID Links to absolute ones under Magnolia 3.6.8.

I have my UUID Link, which points to an image, from a dialog field with 
controlType = uuidLink.

I tried some classes but they didn't work:

String imgPath = LinkUtil.convertUUIDsToAbsoluteLinks(uuid);

UUIDLink uuidImage = new UUIDLink();
uuidImage.parseUUIDLink(uuid);
String imgPath = uuidImage.getHandle();

String imgPath = 
LinkResolver.Factory.getInstance().convertToAbsoluteLinks(uuid,true);

Only this works:

LinkHelper.convertUUIDtoHandle(uuid,"dms") but this only gives me the relative 
path with /dms as root. So I have to put /dms , the context path and host 
myself in front of it. If there is no better way, I have to go this way. How do 
I get my host name?

In the end I need a URL object or a java.io.File object. Is there a way to get 
a file object from uuid?

Regards, Bao


----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to