View user template tags

From Open-Realty Wiki

Jump to: navigation, search

Each tag in the template system looks like this {tag_name}. The Following tags are available from the main templates.

Tag Description
user_first_name Displays the user's first name.
user_last_name Displays the user's last name.
user_images_thumbnails Displays the thumbnails of the user's images
agent_image_thumb_# Displays the agent's thumbnail image that is specified by the #. note: first image is 0, NOT 1
raw_agent_image_thumb_# Displays the agent's thumbnail image NAME ONLY that is specified by the #. note: first image is 0, NOT 1
user_display_info Displays the user info. All of the fields other than the first name, last name and username.
user_contact_link Renders a link to contact the agent.
user_listings_list Displays the agent's listings in a list.
user_hit_count Displays the hit count for the user.
user_vcard_link Adds a link to download the agent's information as a vcard.
user_id Displays the user's id.
user_listings_link Displays a link to the search results page showing listings from this agent.
user_field_FIELDNAME by using the name of a user field defined in the agent template editor, you can call the individual field and place it on the page. For example to call the "address" field you would insert {user_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."
user_field_FIELDNAME_value Works the same as user_field_FIELDNAME, except you only get the field value. eg. "1600 Penn Ave."
user_field_FIELDNAME_caption Works the same as user_field_FIELDNAME, except you only get the field caption. eg. "Address"
user_field_FIELDNAME_rawvalue Works the same as user_field_FIELDNAME, except you only get the raw field value. For example when calling a number field instead of getting "150,000" you would simply get "150000".
Personal tools