Main template tags
From Open-Realty Wiki
Each tag in the template system looks like this {tag_name}. The Following tags are available from the main templates.
| Tag | Description |
| license_tag | This places the required html comments into the template. Not including this tag is a violation of the license agreement.
If you would like to remove this license tag you must purchase a Commercial License for Open-Realty. [More Info] |
| select_language | Shows the language selection dropdown. This is NOT yet supported. Expected to be integrated in 2.5 release. |
| templated_search_form | This places the templated search form onto your main template page or into any of the WYSIWYG pages. |
| baseurl | Places the correct baseurl into the template. |
| url_index | Places the URL for the Index Page into the template. |
| url_search | Places the URL to the Search Page into the template. |
| url_search_rental | Places the URL to the Rental Search page into the template. |
| url_search_class_# - New in 2.5 | Places the URL to the search page for property class # into the template. |
| url_search_results | Places the URL to the Search Results page into the template. This will be to display ALL listings |
| url_view_agents | Places the URL to view the agent's into the template. |
| url_view_calculator | Places the URL to view the calculator into the template. |
| url_view_favorites | Places the URL to View a member's Favorite listings. This should be used inside of the check member permission tags. |
| url_view_saved_searches | Places the URL to view a member's Saved Searches. This should be used inside of the check member permission tags. |
| url_logout | Places the URL for a member to LOGOUT of the site. This should be used inside of the check member permission tags. |
| url_member_signup | Places the URL for a visitor to sign up as a member to the site. This should be used inside of the check guest permission tags. |
| url_member_login | Places the URL for a visitor to LOGIN to the site as a member. This should be used inside of the check guest permission tags. |
| url_agent_signup | Places the URL for a visior to sign up as an agent on the site. This should be used inside of the check guest permission tags. |
| page_link_# | Places a link to the specified page # into the template. The page number is provided when editing a page with the Page Editor. |
| featured_listings_vertical | Inserts the featured listings in a vertical layout. |
| featured_listings_horizontal | Inserts the featured listings in a horizontal layout. |
| random_listings_vertical | Inserts random listings in a vertical layout. |
| random_listings_horizontal | Inserts random listings in a horizontal layout. |
| featured_listings_vertical_class_# - New in 2.5 | Inserts the featured listings for property class # in a vertical layout. |
| featured_listings_horizontal_class_# - New in 2.5 | Inserts the featured listings for property class # in a horizontal layout. |
| random_listings_vertical_class_# - New in 2.5 | Inserts random listings for property class # in a vertical layout. |
| random_listings_horizontal_class_# - New in 2.5 | Inserts random listings for property class # in a horizontal layout. |
| load_js | Places JavaScript into the template. This loads javascript defined using the $load_js variable and can be used throughout Open-Realty and Addons. This should be placed near the top of your main template between the <head> and </head> tags. |
| load_js_last | Places JavaScript into the template. This loads javascript defined using the $load_js_last variable and can be used throughout Open-Realty and Addons. This should be placed at the end of your main template just before the </body> tag. |
| load_meta_keywords | This places the meta keywords tag and values into your template. The Meta keywords help with search engine ranking. This tag should be placed inside the head tag of your main.html template. |
| load_meta_description | This places the meta description tag and values into your template. The Meta description helps with search engine ranking. This tag should be placed inside the head tag of your main.html template. |
| load_meta_keywords_raw New in 2.5.3 | This places the raw meta keywords values into your template. The Meta keywords help with search engine ranking. This tag should be placed inside the head tag of your main.html template. Proper usage of this tag would be within the meta keywords tag for example: <meta name="keywords" content="{load_meta_keywords_raw}" /> |
| load_meta_description_raw New in 2.5.3 | This places the raw meta description values into your template. The Meta description helps with search engine ranking. This tag should be placed inside the head tag of your main.html template. Proper usage of this tag would be within the meta description tag for example: <meta name="description" content="{load_meta_description_raw}" /> |
| template_url | Places the correct template url into the template. |
| content | This Places the actual content generated by open-realty from specific GET['action'] calls. |
| site_title | This places the site title set in the open-realty site configuration. |
| company_name | This places the company name from the site configuration onto the page. |
| company_location | This places the company location from the site configuration onto the page. |
| company_logo | This places the url for the company logo from the site configuration onto the page. |
| lang_VARIABLENAME | This places the specified language variable from your language file into the template. For example using {lang_featured_listings} would call the language variable: $lang['featured_listings'] and would display its value on the template, in this case: Featured Listings |
| load_css_FILENAME | Loads the specified CSS file into your template. The CSS file must be located in your template directory with main.html and have a .css extention. This tag should be placed inside your html head tags. |
| charset | Adds the charset selected in site config to your template. |
| template_select - New in 2.5 | Shows the template selection dropdown box. |
