Hi, I'm not sure how to use LinkUtil to retrieve the image links? I have tried to use LinkUtil.convertLinksFromUUIDPattern() on the text retrieved from a page but that does not seem to be working. What I would like to do is scan the whole page and, where it finds images, convert them to an absolute URL and return the text with the links resolved. Is this possible?
________________________________ From: Grégory Joseph <[email protected]> To: Magnolia User-List <[email protected]> Sent: Tue, 6 July, 2010 12:43:36 Subject: Re: [magnolia-user] Convert images to links? Hi Suraj, From: Suraj [mailto:[email protected]] >To: [email protected] >Sent: Tue, 06 Jul 2010 13:03:59 +0200 >Subject: [magnolia-user] Convert images to links? > > >I am writing a class which retrieves all the content from a particular page >and outputs the content to an external XML file. If the page has images >(either uploaded or from the dms), how could I retrieve the URL of the image? > >I came across info.magnolia.cms.link.LinkResolverImpl but I notice its been >deprecated since 4.0... Indeed it is, and the deprecation note also encourages you to use info.magnolia.link.LinkUtil instead ;-) hth, -g ________________________________ ---------------------------------------------------------------- For list details see http://www.magnolia-cms.com/home/community/mailing-lists.html To unsubscribe, E-mail to: <[email protected]> ---------------------------------------------------------------- ---------------------------------------------------------------- For list details see http://www.magnolia-cms.com/home/community/mailing-lists.html To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
