Template Variables
Template tags are use in
the templates to place values generated by the program. The tags look like
<-example->.. and they are case sensitive.
Most of the tags are for use in the details.php template.
Custom Tags
All custom field tags start with custom_ to avoid overwriting
existing variables. The custom tags look like <-custom_Color-> These
tags are listed for you in the admin custom fields area and are available for
use in the details.php template. They are case
sensitive.
IF Tags
You
can use IF tags in the template to show content based on if a tag is set or
empty.
Here is an example.
Simple:
<IF
NAME="img3"><-img3-></IF NAME="img3">
NAME = the tag minus
<- ->
If <-img3-> is set it will be shown.
A little More complicated:
<IF NAME="img3">
Some
Text<br>
<-img3-><br>
<-price-><p>
</IF
NAME="img3">
If it is set everything will be shown but if img3 is not set none of the text or tags will be shown on the page. If tags can be nested. I have added a file named example_details.php to each template folder. It has an example of replacing the <-thumbtable-> tag.
Some
Notes
You should only use
<-largeimage-> once in the template. If you use it more than that it
will show the main image but it will not change with the
rollovers.
The IF tags are very useful if you are using different types. Each type has its own set of custom fields so if you use if statements for fields that they do not have in common they will not be shown on the template.
If you add or delete a field, you need to add or remove it from the template if you are using the tags. It is automatically added or removed from the generated <-featuretable->. If a custom field tag does not exist in any type then it will be shown on the page.
There are no spaces in the custom tags. If your field name is Power Windows then the tag would be <-custom_Power_Windows->. It will be shown correctly in the admin list.
Image tags are set in order. So even if you have uploaded image 2,4 and 12, in the template they would still be <-img1->,<-img2->, and <-img3->. They still show in the order. 2 = <-img1->,< BR > 4 = <-img2->,12 = <-img3-> in this case.
Available tags (Details
Template)
----------------------------------------------------------------------------------------------
<-v_id-> - Database ID number
<-list_id-> -
Listing
ID
<-address->
<-city->
<-state->
<-zip->
<-county->
<-bedrooms->
<-bathrooms->
<-school->
<-displayprice->
<-price->
<-saleprice->
<-featuretable->
<-largeimage->
<-thumbtable->
<-description->
<-calcprice->
- Unformatted price or saleprice if set to pass to the payment
calculator
<-status-> - Available, Pending, or
Sold
<-viewcount-> - Total number of times the details
page was viewed.
<-largeimage-> - Main image
<-img1-> thru <-img24->
Individual thumb images
<-fileUrl1-> thru <-fileUrl5-> - Url to file
<-fileName1-> thru <-fileName5-> - File
Name
<-fileText1-> thru <-fileText5-> - Link text. If link text
is not set when adding the file this will contain the file name.
Custom tags are displayed for you in the admin. Just click Custom fields and you will see them.
All custom fields, images, and files have support for IF built in. There is
no need to add them manually.
--------------------------------------------------------------------
If you have any questions or problems please use our support
desk: