Hi all,
I'm trying to display uploaded images using magnolia cms 5.2, but unfortunately 
I really don't understand where to find it on the documentation. 

I'm using FTL templates and I did it as following:

[b]In configuration I created a new component containing this properties:[/b]
[code]
  - dialog: myTemplateModule:banner
  - renderType: freemarker
  - templateScript: /myTemplateModule/components/banner.ftl
  - title: Banner Image
[/code]

[b]I added a new dialog called banner, having the following properties:[/b]
[code]
  - actions (as default)
  - form/tabs/text/fields
     • image
        . allowMimeType: image.*
        . class: [...] BasicUploadFieldDefinition
        . label: Immagine
     • title
[/code]
        
[b]I defined my banner template ftl in some different and not working ways :( 
[/b]
[code]
<h2>${content.title!}</h2>
<img src="${content.image.link}" alt="${content.title!}" style="height:218px;">
[/code]

When I upload the image, I can't see the image preview in the dialog, but the 
image size is right.

When i try to render the page, I can see the rendered title variable, but I 
cannot see the image one. This is the rendered markup:

[code]
<h2>Hello World!</h2>
<img src="" alt="Hello World!" style="height:218px;">
[/code]

What's wrong? 
I'm sorry to post this kind of things, i'm a magnolia new be... 

Thanks a lot, Davide.

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=8892bc75-548c-4169-bc8e-526c1fd747d7


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

Reply via email to