Usage: {tag_name}.


The # in the tag names for the thumbnails is referencing the order in which the thumbnails appear, so a value of 1 would display the first thumbnail image, 2 the second, and  etc.


The # in the tag names for the fields, headers and textareas equals the "Field Order on Search Result Page" setting in the Listing Field Editor.


Any listing fields to be displayed on the Search Result template must also have the value "Display On Search Result Page" set to "Yes" in the Listing Field Editor or the field will not be displayed.


The following tags are available for use within the following  search results  template files:

search_result_default.html

search_result_box.html

search_result_nophoto.html

search_result_tabbed.html

search_results_class_CLASSID.html


Tag

Description

next_prev

Inserts the Next_Prev function into the search results page. This uses the next_prev.html template

next_prev_bottom

Inserts the Next_Prev function into the search results page. This uses the next_prev_bottom.html template

header_title

Displays the title field name "Title" in the header area. This will be linked as a sortable field.

header_title_no_sort

Same as above without link. Text Only

header_#

Displays the Field name in the header area. This will be linked as a sortable field. The number is defined in the "Field Order on Search Result Page" option in the Listing Field Editor.

header_#_no_sort

Same as above without link. Text Only

header_pclass

Displays "Property Class" in the header area. This is linked as a sortable field. This will sort the search results by property class

header_pclass_no_sort

Same as above without link. Text Only.

listing_title

Displays the Listing Title.

image_thumb_#

Displays a listing's thumbnail image. The number corresponds to the to the image order defined in the listing image editor.

raw_image_thumb_#

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

image_full_X

Displays the specified main/full image where X = the image order of the main image specified. 1 = first.

raw_image_full_X

Displays the specified main/full image NAME ONLY, where X = the number of the order of the main image specified in the image editor.

image_full_fullurl_X

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 X = the number of the order of the main image specified in the image editor.

field_#

Displays the Data from the specified field number. The number is defined in the "Sort Order" option in the listing template editor.

textarea_#

Displays entire field value from a Text Area

textarea_#_short

Displays first 100 characters from a Text Area then displays "... More Info" which is linked to the listing view.

delete_from_favorite

Displays the option to delete a listing from a user's saved favorites. Option will only be displayed when in favorites.

vtour_button

Displays the Virtual Tour link button on the search results for each listing that has a virtual tour.

link_to_listing

Allows you to create a link to the listing on the Search Results page.  

Example:

<a href="{link_to_listing}">Click here for listing details</a>

pclass_link

This places a link for the search results of the current listing classes

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.

listingid

Displays the Listing ID on the search results page.

listing_field_FIELDNAME

Using the field name of a listing field defined in the Listing Field Editor, you can query an individual field and display it on the page. For example to query the "address" field you would insert {listing_field_address} into your template, which would result in both the field caption and field value being placed in your template

Example:

Address: 1600 Penn Ave.

listing_field_FIELDNAME_value

Works the same as {listing_field_FIELDNAME}, but it will return just the field value. e.g. "1600 Penn Ave."

listing_field_FIELDNAME_caption

Works the same as {listing_field_FIELDNAME}, but it will return just the field caption. e.g. "Address"

listing_field_FIELDNAME_rawvalue

Works the same {listing_field_FIELDNAME}, but it will return just the raw field value. For example when querying the 'price' field instead of receiving "$150,000" it will simply return "150000".

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 where # is the thumbnail order. 1 = first photo.

listing_agent_field_FIELDNAME

Using the field name of an Agent field defined in the Agent Field Editor, you can query an individual field and display it on the page. For example, to query the 'phone' Agent field you would insert {listing_agent_field_phone} into your template, which would result in both the field caption and field value being placed in your template.

Example:

Phone: 555-555-1234

listing_agent_field_FIELDNAME_value

Works the same listing_agent_field_FIELDNAME,  but it will return just the field value. eg. "555-555-1234"

listing_agent_field_FIELDNAME_rawvalue

Works the same listing_agent_field_FIELDNAME,  but it will return just the raw, unformatted field value. For example when querying the 'price' field instead of returning "$150,000" it will simply return "150000".

listing_agent_field_FIELDNAME_caption

Works the same listing_agent_field_FIELDNAME,  but it will return just the field caption. e.g. "Phone"

fulllink_to_listing

The absolute link to the listing instead of the relative link. Used for RSS Newsfeeds.

link_edit_listing

This places a link to edit the listing on the search results page for each listing if the agent is logged in and is the owner of the listing, or if the logged in agent is an admin or has permissions to edit all listings.

Note: only valid when used within the {search_result_dataset}  {/search_result_dataset} block tags

link_edit_listing_url

This provides the raw html address to the edit listing page on the search results page for each listing if the agent is logged in and is the owner of the listing, or if the logged in agent is an admin or has permissions to edit all listings.

Note: only valid when used within the {search_result_dataset}  {/search_result_dataset} block tags

get_creation_date  *DEPRECATED

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

get_modified_date *DEPRECATED

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

listing_creation_date

Displays the listing's creation date in the configured Open-Realty® date format. (replaces {get_creation_date})

listing_last_modified_date

Displays the listing's modified date in the configured Open-Realty® date format.  (replaces {get_modified_date})

get_featured

Adds "featured" to listing details or search results if listing is featured otherwise does nothing. Useful for CSS templating purposes or just letting people know this is a featured listing.

get_featured_raw

Adds "yes" or "no" to the template depending on if the listing is featured or not. Primarily used in CSS for templating purposes.

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.

link_add_favorites

Displays a link to add the listing to the user's saved favorite listings.

link_add_favorites_url

This provides the raw URL to the add to favorites page so that it can be placed in a link or have an image linked by the template designer.

listing_agent_id

Places the ID of the listing agent on the page

field_caption_X

Places the field caption for a search results field on the listing detail page where X is the "Field Order on Search Result Page".

Example:

{field_caption_1}

Note: only valid when used within the {search_result_dataset}  {/search_result_dataset} block tags

textarea_caption_X

Places the field caption for a textarea field on the listing detail page where X is the "Field Order on Search Result Page".

Example:

{textarea_caption_1}

Note: only valid when used within the {search_result_dataset}  {/search_result_dataset} block tags



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:

TEMPLATE_TAG_block

BEGINS a block for the defined template tag. All code contained inside this block will not be displayed if there is no matching field. This is for template designers who do not know the number of fields the site admin will have marked as searchable. It does not hide the data if the field exists but is also empty. Block must be closed with {/TEMPLATE_TAG_block} The following regular template tags also have block options:


header_title

header_title_no_sort

header_#

header_#_no_sort

field_title; field_#

textarea_#

textarea_#_short

search_result_header

BEGINS the Search Result header area. This area will only be displayed once on the page and contains the sortable search header fields.

This section must be closed with {/search_result_header}

search_result_dataset

BEGINS the section for the display of the search results. This section of the template will be repeated (iterated) for each listing matching the search result.

This section must be closed with {/search_result_dataset}

header_#_block

Content placed within {header_#_block} {/header_#_block} tags will only display if the field queried is present in the results.

 Example:

<ulid="SortTitles">

  {search_result_header}

    {header_1_block}

               <li>{header_1}</li>

    {/header_1_block}

    {header_2_block}

               <li>{header_2}</li>

    {/header_2_block}

  {/search_result_header}        

</ul>

Other/Miscellaneous

row_num_even_odd

Gets the row number and returns it as 0 or 1. This is used, in combination with the stylesheet to alternate table row colors. Example usage of this tag in your template:

<tr class="result_row_{row_num_even_odd}">

Related Topics:
Listings Notification
Editing Listings
General Options
Search Page Options
Search Result Options
Search Page Order Tab
Search Results Order Tab
Main Template Tags
FEATURED/RANDOM LISTINGS TEMPLATES
Featured/Random Template Tags
SEARCH PAGE TEMPLATES
Custom Search Pages
Date and Time related searches
Multiple Sortby Values
Additional Search String Variables
Search Page Template Tags
Search Results
FREQUENTLY ASKED QUESTIONS (FAQs)
TROUBLESHOOTING