Brent McArthur ha scritto:
Hi Everyone,

Hi Brent,

I’ve been spending the last couple of weeks looking into Magnolia as we’re going to use it for one of our projects. It’s looks to be a great product and I’m excited to get my teeth stuck into it.

Good choice :-)

I’m trying to develop a paragraph template that shows an image. In the dialog I want the content author to be able to upload an image or select one that already exists in the DMS.

Ok, it is a good idea, I suppose that you have configured the dialog with 2 controls, one is the upload control, the other is the UUIDLink control with uuid as property to save on nodeData...

I can display the image fine if they upload the image directly into the paragraph using this code [...] But I can’t find any way to have the image tag rendered for a DMS linked image. Does someone know how to do this?

Yes, sure.
First: have a deep look here:

*http://dev.magnolia-cms.com/ref/4.0.1/magnolia-taglib-cms/tagreference.html#cms:out*

Then, you'll find that you can tell to the taglib in which repository read and if you use the "path" shortcut you will reach your goal:

<cms:out nodeDataName="dataImgUUIDStoredInPage" var="uuidToSearchInDMS" />
<cms:out repository="dms" uuid="${uuidToSearchInDMS}" nodeDataName="path" var="imgUrl"/>
<img src="/dms/${imgUrl}" ... />

PS: I've just written this code without testing, please test it before use.. :-)

Otherwise you can look for "uuidToLinkRepository" attribute of cms:out tag.

I’ve got plenty of questions like this. If anyone has more detailed sample JSP sites that I can use to reference that would be great!

I can understand you!
We need documentation ;-)

HTH!
Matteo


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