Shortcodes
To show property search form, results, featured properties, enquiry form and details pages on your website we have shortcodes.
For example on the details pages will show the price of the property being viewed.
Depending on the type of module you are trying to produce the block of shortcodes are wrapped in a specific tag.
…shortcodes…
The following is a simple details page set of shorcodes to show the property price, town and description:
Shortcode options
format=”%s”
%s = The item value.
Any text placed within the quotes will appear if item exists, but will not show if the information is not available. You can place any normal html in the quotes
eg.
format=”<strong>Property Price:</strong> %s”
will produce
Property Price: 3,200 €
field=””
The name of the property information you want to show on the page
eg.
Field type = Villa
Field town = Malaga
Shortcode:
Result:
Villa in Malaga
Class=””
Add a css class to field
Translations
For multiple languages we have various words that are translated automatically.
To have a label=”” or text in a format=”” field translated wrap the text in {} brackets
eg.
”{Bank
To translate inline text wrap in
eg.
Read more…
Results/Featured - Shortcodes
Results and featured property listings have variables set at the beginning in the
tag.own – [REQUIRED] 1 = own properties, 0 = own and partner properties
featured – [REQUIRED] latest – bargain – week – month
order – [OPTIONAL] pa = Price ascending, pd = Price descending, r = Reference, rd = random, lt = latest descending, default is price ascending
perpage – [REQUIRED] is the maximum number of properties to display per page
selectbyref – It is possible to show a selection of properties directly by reference number from within a shortcode set, and any number of referenced properties may be selected, each reference number must be separated by a semicolon ‘;’.
class – [OPTIONAL] Set a CSS class. This can be added to any field.
You can restrict how many characters show in the description to the nearest space using the maxlength variable:
