Featured listings template tags
From Open-Realty Wiki
Each tag in the template system looks like this {tag_name}.
The Following tags are available from the featured listings templates.
| Tag | Description |
| lang_variable | Displays the value for any defined lang variable. |
| featured_url | The URL for the featured listing being displayed. Use this for creating the link to your featured listing, for example: <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. |
| 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 specfied in the # place. Whatever number is specified will display the thumbnail that falls in that order |
| listing_pclass | Displays the name of the property class the listing is assigned to. In cases where the listing is part of multiple classes it will show a the names separated by a comma. |
| listing_field_FIELDNAME | by 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, eg. "Address: 1600 Penn Ave." |
| listing_field_FIELDNAME_value | Works the same listing_field_FIELDNAME, except you only get the field value. eg. "1600 Penn Ave." |
| listing_field_FIELDNAME_caption | Works the same listing_field_FIELDNAME, except you only get the field caption. eg. "Address" |
| listing_field_FIELDNAME_rawvalue | Works the same listing_field_FIELDNAME, except you only get the raw field value. For example when calling the price field instead of getting "$150,000" you would simply get "150000". |
| listing_agent_field_FIELDNAME | by 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, eg. "Phone: 555-1234" |
| listing_agent_field_FIELDNAME_value | Works the same listing_agent_field_FIELDNAME, except you only get the field value. eg. "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" |
| link_to_listing | Places a link to the listing |
| fulllink_to_listing | absolute link to the listing instead of a relative link. Used for RSS Newsfeeds |
| money_sign | Adds the configured money sign to the template. |
| Blocks | |
| Template tag Blocks are template tags that will have a starting and ending tag. Starting tags will be listed below. Blocks must be closed with {/TEMPLATE_TAG_block} The following template tags are block options: | |
| 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} |
| NEW IN VER 2.2.0 | |
| {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. |
| Blocks | |
| featured_img_large_block | Block for the large image for the featured listing being displayed. |
