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...

This can 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}" ... />



Therefore I posted the code which turns the node into a DMS "Document" object and gets the link from it.

-will

----------------------------------------------------------------
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]>
----------------------------------------------------------------

Reply via email to