The Open-Realty Blog publisher is very powerful and has the ability to insert listing information directly into your Blog post using OR template tags in your post.


To display listing information in your Blog post you will need to enclose your listing template tags using {blog_listing_#} blocks where # is the listing ID# that you want to display information for.


For example, in a new unmodified Open-Realty installation the following will show the example listing (White House) price and photo:


{blog_listing_1}


{listing_field_price}

{image_thumb_1}


{/blog_listing_1}


The Following Listing Template tags { } are available for using inside the {blog_listing_#}   {/blog_listing_#} block in your blog post:


listing_agent_name

Displays the listing agent's name.

listing_agent_link

Displays a link to the listing agent's information

listing_agent_listings

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

listing_agent_id

Displays the listing agents id on the page.

listing_title

Displays the listing's title on the page.

image_thumb_#

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

image_thumb_fullurl_#

Displays the specified thumbnail image at the configured display size. The image is linked to the image viewing path using the full URL. Where # = the number of the order of the main image specified in the 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 number of the order of the main image specified in the image editor.

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.

listing_field_FIELDNAME

By using the name of a listing field defined in the listing template editor, you can call the individual field and display 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 listing_field_FIELDNAME, except only the field value is displayed. e.g.: "1600 Penn Ave."

listing_field_FIELDNAME_caption

Works the same listing_field_FIELDNAME, except  only the field caption is displayed. e.g.: "Address"

listing_field_FIELDNAME_rawvalue

Works the same listing_field_FIELDNAME, except only the unformatted raw field value is displayed. For example: if requesting the price field instead of receiving "$150,000" you would simply receive the raw value "150000".

listing_pclass

Displays the name of the property class 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: the first image is 0, and NOT 1

listing_agent_field_FIELDNAME

Using the name of an Agent field defined in the User Field editor, you can call the individual field and display  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 as listing_agent_field_FIELDNAME, except only the field value is displayed. 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"

fulllink_to_listing

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

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:

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:
Blog Publisher (Editor View)
Main Template Tags
Blog Template Tags
LISTINGS NOTIFICATION TEMPLATE
View Agent Template Tags