User Tools

Site Tools


en:public:developer:template_system:tags:geoplace:tgeoplace:create

This is an old revision of the document!


<#TGeoplace.create>

You can use this tag to construct a TGeoplace object. This object provides an easy and fast way to retrieve, change and save the information connected with some geographical place or unit.

Parameters

Name Mandatory Default Description
ID Yes Our internal ID of geoplace, used to load the information of geoplace defined by this ID.
Template No If not empty then Parse this template with the new created TGeoplace object, return the result and free the object

Example

NOTICE! This ID is not real, it's just to illustrate the idea.

<#{geoplace id="FR-231456-712223-456111">      
  <#{template>
 
     <h1><#geoplace._Label></h1><br />
     Number of listings (total): <#geoplace.NB_ad><br />
     Number of listings (for sale): <#geoplace.NB_ad_res_forsale><br />
     Number of listings (for rent): <#geoplace.NB_ad_res_forrent><br />        
 
  <#}template>
<#}geoplace>

will output :

Cannes La Bocca

Number of listings (total): 145001
Number of listings (for sale): 120034
Number of listings (for rent): 765

en/public/developer/template_system/tags/geoplace/tgeoplace/create.1371648754.txt.gz · Last modified: 2013/06/19 17:32 (external edit)