Will Scheidegger ha scritto:
I don't think that this
<cms:out repository="dms" uuid="${variableContainingTheUUID}"
nodeDataName="path" />
will work. This will return a link to the dms node, i.e.
/link/to/my/dms/node, but you need a link to the document in the node,
i.e. /link/to/my/dms/node/image.jpg
Oh, sure, sorry!
Thanks Will..
This should work:
<cms:out nodeDataName="dataImgUUIDStoredInPage" var="uuidToSearchInDMS" />
<cms:out repository="dms" uuid="${uuidToSearchInDMS}"
nodeDataName="path" var="imgUrl"/>
<cms:out repository="dms" uuid="${uuidToSearchInDMS}"
nodeDataName="title" var="imgTitle"/>
<img src="/dms/${imgUrl}/${imgTitle}" ... />
PS: anyway, you can replace
<img src="/dms/${imgUrl}/${imgTitle}" ... />
with
<img src="/dms/${imgUrl}/whateveryoulike" ... />
and the image is taken. Remember to use the prefix "/dms" before the
image path.
This is a solution that is only JSP / JSTL / cms-tag scoped, the Will
solution is Java based.
So you have both approaches!
HTH,
Matteo
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------