cancel
Showing results for 
Search instead for 
Did you mean: 

Web Scripts Expression Reference

aaronmevans
Champ in-the-making
Champ in-the-making
Hi, newbie here working with webscripts.

I've been working off the samples in Alfresco but I can't seem to find a reference for the expression language on the wiki or anywhere.

For example, I have a modifed version of the folder.get.atom.ftl and I want to do an in-line if to say that if there is no title then display the name otherwise display the name.  So something like;

<title>${child.properties.title ? child.properties.title : child.name}</title>

Where does the reference for the expression language live?

thanks,
aaron
2 REPLIES 2

rdanner
Champ in-the-making
Champ in-the-making
For basic FTL questions you want to use the FTL documentation:
http://freemarker.org/docs/dgui_template_exp.html
http://freemarker.org/docs/dgui_template_directives.html

Remember that you have access to certain root objects and that you can expose other objects to your ftl by adding it to the model
to do so you simply type
model.myVarName = myValue;

aaronmevans
Champ in-the-making
Champ in-the-making
For basic FTL questions you want to use the FTL documentation:
http://freemarker.org/docs/dgui_template_exp.html
http://freemarker.org/docs/dgui_template_directives.html

Remember that you have access to certain root objects and that you can expose other objects to your ftl by adding it to the model
to do so you simply type
model.myVarName = myValue;

Thank you, this is most helpful…