#* On these pages you will need to insert unique content. You will want to use variables to help you do this. If you'd like to insert the city name, you can use $poi.City. To insert the state name, you can use $poi.StateProvinceName and to insert the state abbreviation, use $poi.StateProvince. If you plan to generate pages for international properties you should use this "if" statement any time you use the state variable:
#if($Util.stringHasValue($poi.StateProvinceName)) $poi.StateProvinceName#end *#
Find hotels near $poi.name in $poi.City, $poi.StateProvince and much more!
If you're looking for information about traveling near $poi.Name you've come to the right place.
#* In addition to one generic paragraph that would work for any city, you will want more specific information for cities that have a lot of hotels. "If statements" are used to add unique content to specific city pages. Below is an example of an "if statement". Any time an "if statement" is used, it has to be ended by using pound(#)end.
To build an "if statement" that will allow you to include content for more than one city you can use "elseif". See the "Las Vegas" example below. YOu also have the ability to include information from specific files. For example, you may have a large amount of information on the San Antonio area in a text document. You can use the example below for San Antonio as a guideline for inserting the contents of that file into your San Antonio page. You will save the text file to the main level of the page-generator folder and then place the include statement wherever you would like the information to appear.*#
#if ($poi.PoiTypeID == "16")
This is where you insert information that would focus on the fact that this poi is an airport. You might say something similar to:
This page is a great resource for locating hotels near $poi.Name in $poi.City, $poi.StateProvince. Staying near $poi.Name in $poi.City, $poi.StateProvince is important to many travelers. We hope you find this list of hotels near $poi.Name a helpful guide.
#elseif ($poi.PoiTypeID == "11")
This is where you insert information that would focus on the fact that this poi is a school or university. You might say something similar to:
This page is a great resource for locating hotels near $poi.Name in $poi.City, $poi.StateProvince. Whether you are interested in attending $poi.Name or are visiting someone who already attends, this page can save you time in finding a hotel near $poi.Name in $poi.City, $poi.StateProvince.
#elseif ($poi.PoiTypeID == "10")
This is where you insert information that would focus on the fact that this poi is a hospital or medical center. You might say something similar to:
This page is a great resource for locating hotels near $poi.Name in $poi.City, $poi.StateProvince. Using this guide will let you quickly see how far away each hotel is from $poi.Name.
#end
#*This div layer builds the breadcrumb top navigation list. All Countries > Country > State > City > POI Name. You can delete the portions of the navigation you do not need here. Keep in mind that any time you delete an "if" you need to also delete the corresponding "end"*#
#set( $url = "../continents.html")
#set( $url = $Util.prepURL("${url}","-"))
All Countries
:
#set( $url = "../country/${country.CountryCode}.html")
#set( $url = $Util.prepURL("${url}","-"))
$country.CountryName
#if ($Util.stringHasValue($state.StateProvinceName))
:
#set( $url = "../state/${countryIn} ${state.StateProvince}.html")
#set( $url = $Util.prepURL("${url}","-"))
$state.StateProvinceName
#end
:
#set( $url = "../hotels/${countryIn} ${stateIn} ${cityIn}.html")
#set( $url = $Util.prepURL("${url}","-"))
$city.City
:
$poi.Name
#* This is the main content of the page. *#
Hotels Closest To $poi.Name - $city.City#if($Util.stringHasValue($state.StateProvinceName)) $state.StateProvinceName#end
#foreach( $hotel in $hotela.getProximity($poi,25) )
#set( $url = "../hotelinfo/${hotel.hotelID}.html")
#set( $chain = $chaina.getChain($hotel.chaincode))
#if ($Util.stringHasValue($hotel.imageURL))
#end
$hotel.Name
$hotel.Address1
$hotel.City, $hotel.StateProvince $hotel.PostalCode
$Util.formatDecimal($hotel.distanceFrom) miles from $poi.Name
Nightly Rates: ( $Util.formatDecimal($hotel.LowRate) - $Util.formatDecimal($hotel.HighRate) )
#if ($hotel.starrating!="-1")
$hotel.starrating Star
#end
#set( $description = "${hotel.PropertyDescription} ${hotel.LocationDescription}")
$Util.substring("${description}",0,240)...more
#end