This is an old revision of the document!
Use this function to retrieve the content of a template file
Parameters are taken from tag (default) or from HTTP GET/Post
Name | Mandatory | Default | Description |
---|---|---|---|
filename | Yes | The filename (related to the root). Ex: /templates/maintemplates/maintemplate.html | |
revision | No | Determines in with revision number the content is first looked up | |
output_format | No | REST | JSON to retrieve response in JSON Format or REST to retrieve in REST Format |
jsoncallback | No | Callback function to use in JSON Response Format |
<#get_geoplaces output_format="json" geoplacerequest.id_direct_parent_geoplace="XW" fields="geoplace.id;geoplace.havechilds;geoplace.label;geoplace.translations[usa].label;geoplace.translations[usa].label_propertylistings_url(1,1);geoplace.aggregated_data.NB_ad_filtered(1,1)">
will output in JSON
{ "geoplaces" : [ { "aggregated_data" : { "nb_ad_filtered" : "1452948" }, "havechilds" : "1", "id" : "XA", "label" : "Africa", "translations" : { "usa" : { "label" : "Africa", "label_propertylistings_url" : "/real-estate/for-sale/africa/listings/" } } }, { "aggregated_data" : { "nb_ad_filtered" : "411438" }, "havechilds" : "1", "id" : "XE", "label" : "Europe", "translations" : { "usa" : { "label" : "Europe", "label_propertylistings_url" : "/real-estate/for-sale/europe/listings/" } } }, { "aggregated_data" : { "nb_ad_filtered" : "28917" }, "havechilds" : "1", "id" : "XI", "label" : "Asia", "translations" : { "usa" : { "label" : "Asia", "label_propertylistings_url" : "/real-estate/for-sale/asia/listings/" } } }, { "aggregated_data" : { "nb_ad_filtered" : "177798" }, "havechilds" : "1", "id" : "XN", "label" : "North and Central America", "translations" : { "usa" : { "label" : "North and Central America", "label_propertylistings_url" : "/real-estate/for-sale/north-and-central-america/listings/" } } }, { "aggregated_data" : { "nb_ad_filtered" : "131" }, "havechilds" : "1", "id" : "XO", "label" : "Oceania", "translations" : { "usa" : { "label" : "Oceania", "label_propertylistings_url" : "/real-estate/for-sale/oceania/listings/" } } }, { "aggregated_data" : { "nb_ad_filtered" : "665" }, "havechilds" : "1", "id" : "XS", "label" : "South America", "translations" : { "usa" : { "label" : "South America", "label_propertylistings_url" : "/real-estate/for-sale/south-america/listings/" } } } ], "stat" : "ok" }