Hi Hasitha,
Install the Templating Samples module and look at the howTo component. It shows
how to add an image on the page.
http://documentation.magnolia-cms.com/display/DOCS/Templating+Samples+module#TemplatingSamplesmodule-howTocomponentscript
In your component script you would reference the image like this:
[code]<img src="${cmsfn.link(content.image)}" />[/code]
where:
* cmsfn is a collection of useful templating functions.
* link() is a utility method for creating a link.
* content provides access to the currently rendered node, exposed as a
ContentMap object
See howTo component script in Git:
http://git.magnolia-cms.com/gitweb/?p=modules/templating-samples.git;a=blob;f=src/main/resources/samples/components/howTo.ftl
If you work with the STK see the stkTextImage component.
http://documentation.magnolia-cms.com/display/DOCS/Content+components#Contentcomponents-TextandImage
--Antti
--
Context is everything:
http://forum.magnolia-cms.com/forum/thread.html?threadId=23e03cb3-a771-44a7-bcb3-4126ef23ae80
----------------------------------------------------------------
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]>
----------------------------------------------------------------