Vtour 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 VTour templates.

This template is a little more complex and involved than other Open-Realty templates due to the large amounts of Javascript that are required to make the Virtual Tours, buttons, controls and other features work properly together.

Important VTour Template Details

1: Inside the <body> tag of your template you must include the tag {onload}. This is required for the PTViewer type of VTours to properly initialize.

2: Inside the <head> tag of your template you must include the following tags:

    A:{load_js} (required to properly load the Javascript into the page)
    B:{license_tag} (required per the Open-Realty license)

3: There are several new configuration options available to control the size of the VTour, the size of the popup window and the initial zoom of the VTours. See VTour Config Settings for details.

In addition to the VTour Template specific tags below, you can also utilize any of the Listing Detail Template Tags. Several of these tags were utilized in the Default VTour Template.

Tag Description
vtour Displays the main VTour Applet on the page. The width and height of the VTour is adjustable in the VTour Config Settings.
vtour_left_button Displays the Left Nav button for the VTour. You can replace the button with one of your own design as you wish. There are two images that will need to be replaced named vtour_back.gif and vtour_backon.gif. These images are located at /YOURTEMPLATE/images/
vtour_pause_button Displays the Pause Nav button for the VTour. You can replace the button with one of your own design as you wish. There are two images that will need to be replaced named vtour_pause.gif and vtour_pauseon.gif. These images are located at /YOURTEMPLATE/images/
vtour_right_button Displays the Right Nav button for the VTour. You can replace the button with one of your own design as you wish. There are two images that will need to be replaced named vtour_forward.gif and vtour_forwardon.gif. These images are located at /YOURTEMPLATE/images/
vtour_zoomin_button Displays the Zoom In Nav button for the VTour. You can replace the button with one of your own design as you wish. There are two images that will need to be replaced named vtour_zoomin.gif and vtour_zoominon.gif. These images are located at /YOURTEMPLATE/images/
vtour_zoomout_button Displays the Zoom Out Nav button for the VTour. You can replace the button with one of your own design as you wish. There are two images that will need to be replaced named vtour_zoomout.gif and vtour_zoomouton.gif. These images are located at /YOURTEMPLATE/images/
vtour_select Displays the VTour drop down select box to select the next Virtual Tour image.
vtour_description Displays a box for the VTour description.
onload Adds the proper onload= command to the body tag for PTViewer type of VTours. If the VTour is an EGG Solution this tag will be ignored.
money_sign Adds the configured money sign to the template.
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:
vtour_header_block Place this block around your opening <head>, <html> and <body> tags in your VTour Template. The contents of these tags will be removed if the VTour is being displayed directly on the listing detail page. You must close this block with /vtour_header_block
vtour_footer_block Place this block around your closing <html> and <body> tags in your VTour Template. The contents of these tags will be removed if the VTour is being displayed directly on the listing detail page. You must close this block with /vtour_footer_block
vtour_content_block Place this block around any content in your VTour Template that you want removed if the VTour is being displayed directly on the listing detail page. The contents of these tags will be removed if the VTour is being displayed directly on the listing detail page. You must close this block with /vtour_content_block
Personal tools