At the end i found out that there was no direct way of getting an absolute URL
from the image soy had to create the url myself form the uuid that i got with:
[code]<meta name="twitter:imagePRUEBALink" content="${cmsfn.link(newsImage)}"
/>[/code]
And using it to get the relative url of the image with:
[code]<c:set var="imagePath" value="${damfn.getAssetLink(newsImage)}"/>[/code]
and then getting the first part or the absolute URL form the page with:
[code]<jsp:scriptlet><![CDATA[
String domainContext = ServerConfiguration.getInstance().getDefaultBaseUrl();
pageContext.setAttribute("domainContext", domainContext);
]]></jsp:scriptlet> [/code]
And lastly fusing them together like this:
[code]<meta name="twitter:image" content="${contextPath}${imagePath}" />[/code]
this way i got the complete url that Twitter needs for the Twitter Card.
SOLVED
--
Context is everything:
http://forum.magnolia-cms.com/forum/thread.html?threadId=46e4e1e6-a32c-4366-ab66-7e1667a66ea5
----------------------------------------------------------------
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: <[email protected]>
----------------------------------------------------------------