Hi Aditya!
Try:
mgnl.createLink("dms",uuid);
The method is indeed not static.
Regards from Vienna,
Richard
-----Ursprüngliche Nachricht-----
Von: [email protected] [mailto:[email protected]]
Im Auftrag von Magnolia Forums (on behalf of Aditya Sarkar)
Gesendet: Freitag, 27. Mai 2011 12:06
An: Magnolia User List
Betreff: [magnolia-user] Re: Problem getting the relative path of an Image from
DMS.
Hi Jan, thanks for the quick reply, but I am still having problem...
I went with your thought and it looked very simple too
[b]MagnoliaTemplatingUtilities.createLink("dms", uuid)[/b] But I got error in
it...
Cannot make a static reference to the non-static method createLink(String,
String) from the type MagnoliaTemplatingUtilities.
I forgot to mention u that from where I am getting this uuid...
Content child = content.getChildByName("imageCollec");
String uuid=I18nContentSupportFactory.getI18nSupport().getNodeData(child,
"bkimg1DmsUUID").getString(); Is this the right approach? or I am doing
something wrong?
--
Context is everything:
http://forum.magnolia-cms.com/forum/thread.html?threadId=69af96e1-d628-4e07-8ccc-8df55cc21313
----------------------------------------------------------------
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]>
----------------------------------------------------------------