XML Hotel Interface for Affiliates
Home
Support
Sample Sites
V2 FAQ'S
Purchase
Contact Info
About
Client Login
Email:
Password:
Server Check
Systems Requirements
Search:
Advanced search
Browse by category:
____
General Questions
Installing
-- Upgrading from Version 1
-- System Requirements
Admin
Templates
-- Overview / Maps / Video
-- Prices
-- Listings / Search Results
-- View Reservation
-- Custom Pages
-- Featured Hotels Sample
Customizing
-- Built-in Template plugins
Glossary
|
Ask question
Register
|
LogIn
Knowledgebase
/
Templates
/
Overview / Maps / Video
/ How to I check to see if an value exists before I display html tags
How to I check to see if an value exists before I display html tags
Print
Add comment
Views: 356
Comments: 0
The following example would check if the hotel has some attraction info. If it does then
the table row would display and the attractioninfo tag would be replaed with the contents.
<table>
<tr><td>Hotel Features</td></tr>
<!--{if $attractioninfo}-->
<tr>
<td class="titlesdetailpage" valign="top" height="22"><br />
<a name="attractioninfo"></a><span class="amenities">Neary By Attractions</span></td>
</tr>
<tr><td class="details_text" valign="top"><!--{$attractioninfo}--></td></tr>
<!--{/if}-->
</table>
Note: The if statement can be used with any variable in the templates
Other questions in this category
How can I convert state codes or country codes to the name
How do I display the primary hotel image on my page
How do I create a chain codes select box
How do I loop through the video's
©Copyright XML Systems Inc. 2006. All Rights Reserved.