cancel
Showing results for 
Search instead for 
Did you mean: 

freemarker reading new aspects

itayh
Champ in-the-making
Champ in-the-making
Hi,

I added a new Image aspect to my contents. This image will be the thumbnail of the content.
I am trying to set the custom view to show thumbnails according to this new image aspect.
But I can not see if and how to get to this new aspect from freemarker.
Any one has any idea?
1 REPLY 1

kevinr
Star Contributor
Star Contributor
You can test for the existance of an aspect using the hasAspect method (see the Template Guide wiki docs). Then you can be sure that any properties that are part of your aspect definition will be available. You can access them in the same way you would any property, e.g.
document.properties["uriSmiley Tongueropname"]
where uri=your custom model uri shortname and where propname=your property name.

Thanks,

Kevin