Home
FAQ : Where put the application code in templates ?

FAQ : Where put the application code in templates ?

RadiusSearchTempl001In order to turn on the Radius Search Application you need to insert some sentences into the search and vCard templates. Follow the instructions :

  • Browse into the section where the application is published
  • Browse the Section template manager
  • At lease edit the search template to see the Radius search field
  • If you need to see the distance from center, you need to edit the vCard template

Note : see the Sobipro editor's site (Sigsiu.net) to learn more how to edit templates.

On the following captures they are samples, of course you can move the 2 codes where you want.

To display the search fields into the search form, add following code into your search form view template:

 <xsl:value-of select="mjradius" disable-output-escaping="yes" />

 

To show the distances into the search results vCards, add this code into your V-Card template:

 <xsl:value-of select="mjradius"/>

 

Note : the Radius Search Application isn't a custom fields like other Sobipro fields (it save nothing in entries), but is an application. This is the reason why you cannot select the position trough the custom fields.

Note : the radius search fied can be in the extend search part of the search form, in this case the radius search field is not visible at form loading, and you need to click the 'Extended Search' button.

 

Search form template

RadiusSearchTempl002

See here where you can put the code to display before, into and after the extended search :

GF_in_SobiPro_Search_template

vCard template

RadiusSearchTempl003

See also

Placing application before form

Last Updated on Tuesday, 15 May 2012 04:34