Usage: {tag_name}.


The following template tags are available for use within the following Featured/Random/Latest/Popular/Class listing template files:

featured_listing_vertical.html

featured_listing_horizontal.html

random_listing_vertical.html

random_listing_horizontal.html

latest_listing_vertical.html

latest_listing_horizontal.html

popular_listing_vertical.html

popular_listing_horizontal.html


Tag

Description

lang_variable

Displays the value for any defined lang variable.

listingid

Displays the listing ID for the listing being displayed.

featured_url

The URL for the featured listing being displayed. Use this for creating the link to your featured listing,

e.g.:

<a href="{featured_url}">{listing_title}</a>

listing_title

Displays the listing's title.

featured_thumb_src

Displays the listing's thumbnail image URL for use inside an img tag.

featured_thumb_height

Returns the thumbnail height. For use inside an img tag for the height setting.

featured_thumb_width

Returns the thumbnail width. For use inside an img tag for the width setting.

money_sign

Adds the configured money sign to the template.

isfavorite

Returns "yes" if listing is marked as a favorite listing by a logged in user and "no" if not marked as favorite or the user is not logged in. Can be used for CSS etc.

featured_large_src

Displays the listing's large image URL for use inside an img tag.

featured_large_height

Returns the image height. For use inside an img tag for the height setting.

featured_large_width

Returns the image width. For use inside an img tag for the height setting.

listing_agent_name

This places the listing agent's name.

listing_agent_link

This places a link to the listing agent's information.

listing_agent_listings

The places a link to the search results to view other listings from the listing agent.

listing_agent_id

The places the listing agents id on the page.

listing_title

This places the listing's title on the page.

image_thumb_#

Displays a listing's thumbnail image. # corresponds to the to the image order defined in the media widget. 1= first, 2= second, and etc.

image_thumb_fullurl_#

Displays the specified thumbnail image at the display size configured in Site Config. The image is linked to the image viewing path using the full URL. Where # equals the number of the order of the main image specified in the media widget.  1= first, 2= second, and etc.

raw_image_thumb_#

Same as image_thumb_# except it returns the image URL to be used in an image tag.

e.g.:

<imgsrc="{raw_image_thumb_2}">

image_full_#

Displays the specified main/full image where # equals the number of the order of the main image specified in the image editor.  1= first, 2= second, and etc.

raw_image_full_#

       Displays the specified main/full image NAME ONLY, where # equals the number of the order of the main image specified in the image editor.  1= first, 2= second, and etc.

image_full_fullurl_#

       Displays the specified main/full image at the configured display size. The image is linked to the image viewing path using the full URL. Where # equals the number of the order of the main image specified in the image editor.  1= first, 2= second, and etc.

listing_field_FIELDNAME

Using the name of a listing field defined in the listing template editor, you can call the individual field and place it on the page. For example to call the "address" field you would insert {listing_field_address} into your template, which would result in both the field caption and value being placed in your template, e.g. "Address: 1600 Penn Ave."

listing_field_FIELDNAME_value

Works the same as listing_field_FIELDNAME, except only the field value is returned. e.g. "1600 Penn Ave."

listing_field_FIELDNAME_caption

Works the same as listing_field_FIELDNAME, except only the field caption is returned. e.g. "Address"

listing_field_FIELDNAME_rawvalue

Works the same as listing_field_FIELDNAME, except only the raw field value is returned. For example when calling the price field instead of getting "$150,000" you would simply get "150000".

listing_pclass

Displays the name of the property class the listing is assigned to.

listing_pclass_id

Displays the numeric OR property class ID# the listing is assigned to.

listing_agent_last_name

Displays the listing agent's last name.

listing_agent_first_name

Displays the listing agent's first name.

listing_agent_thumbnail_#

Displays the listing agent's thumbnail image that is specified in the # place. Whatever number is specified will display the thumbnail that falls in that order. note: first image is: 1

listing_agent_field_FIELDNAME

Using the name of an agent field defined in the user template editor, you can call the individual field and place it on the page. For example to call the "phone" field you would insert {listing_agent_field_phone} into your template, which would result in both the field caption and value being placed in your template, e.g. "Phone: 555-1234"

listing_agent_field_FIELDNAME_value

Works the same listing_agent_field_FIELDNAME, except you only get the field value. e.g. "555-1234"

listing_agent_field_FIELDNAME_rawvalue

Works the same listing_agent_field_FIELDNAME, except you only get the raw, unformatted field value. For example when calling the price field instead of getting "$150,000" you would simply get "150000".

listing_agent_field_FIELDNAME_caption

Works the same listing_agent_field_FIELDNAME, except you only get the field caption. eg. "Phone"

fulllink_to_listing

Absolute link to the listing instead of the relative link, for use with the RSS Newsfeeds.

listing_creation_date

Displays the listing's creation date in the configured Open-Realty® date format.

listing_last_modified_date

Displays the listing's last modified date in the configured Open-Realty® date format.



Blocks

All code contained on the template inside a block will be controlled according to the block it is contained inside. This is for template designers to control the display of many fields or code by enclosing it in one simple template tag block. A STARTING block will look like a normal template tag but that block must be closed with {/TEMPLATE_TAG} The following template tags are blocks:

featured_listing_block

Block for the each featured listing. The code inside this block will be repeated for each featured listing displayed.

featured_img_block

Block for the image for the featured listing being displayed.

featured_listing_block_row repeat="#"

Block for the featured listing row where rows will be used for displaying featured listings. repeat="#" is the number of times to repeat the content inside the featured_listing_block before starting a new row. When closing this block do not include repeat in the closing tag, i.e. a proper closing would be: {/featured_listing_block_row}

featured_img_large_block

Block for the large image for the featured listing being displayed.

listing_field_FIELDNAME_block

To be placed around listing_field_FIELDNAME tags to prevent display of any code contained inside this block into the template if the field is not to be shown. You must close this block with /listing_field_FIELDNAME_block

listing_agent_field_FIELDNAME_block

To be placed around listing_agent_field_FIELDNAME tags to prevent display of any code contained inside this block into the template if the field is not to be shown. You must close this block with /listing_agent_field_FIELDNAME_block

Related Topics:
Upgrading from OR v2.x
Upgrading from existing v3.x installation
Editing Listings
General
TEMPLATE DOCUMENTATION
Upgrading/Updating Templates
Creating a public site Template
Troubleshooting templates
TEMPLATE SYSTEM LOGIC
PERMISSION TEMPLATE TAGS
Main Template Tags
Contact Agent Template Tags
FEATURED/RANDOM LISTINGS TEMPLATES
SEARCH PAGE TEMPLATES
Multiple Sortby Values
Additional Search String Variables
Search Page Template Tags
Search Results Template Tags
Single Use Hooks