Are you a tour operator or niche travel agent?Come and join our travel business social network!
![]() | ||||||||
| Features Prices Sign up Support Community Company Contact us | ||||||||
home > support > web design > introduction to tags
Introduction to tags
One of the key aspects of TourCMS, or any other content management system, is how you can use the data that has been entered into the system. This content includes tour descriptions, dates, prices and special offers.
<$TourCMStour output="t_name"$> <$TourCMSdeparture output="d_offer_price"$>
Container tags <TourCMSlist_departures orderby="offer_datetime" order="desc" bookable="show" has_offer="show" maxdisplay="3">
Attributes
Combining container tags with element tags <TourCMSlist_departures orderby="offer_datetime" order="desc" bookable="show" has_offer="show" maxdisplay="3"> <$TourCMStour output="t_name"$> </TourCMSlist_departures>
The above example encloses an element tag with a container tag. The container tag repeats its contents for each departure that has a special offer. The element tag itself is a tag to display the tour name. We could end up with a list of 3 tour names like this: <TourCMSlist_departures orderby="offer_datetime" order="desc" bookable="show" has_offer="show" maxdisplay="3"> <$TourCMStour output="t_name"$> <$TourCMSdeparture output="d_offer_price"$> </TourCMSlist_departures>
In our example this would create a list of tour names and offer prices such as: <table cellspacing="2" cellpadding="2" border="1"> <TourCMSlist_departures orderby="offer_datetime" order="desc" bookable="show" has_offer="show" maxdisplay="3"> <tr><td><$TourCMStour output="t_name"$></td> <td><$TourCMSdeparture output="d_offer_price"$></td></tr> </TourCMSlist_departures> </table> Which creates: <table cellspacing="2" cellpadding="2" border="1"> <tr><td>Luxury Paris</td><td>500</td></tr> <tr><td>Luxury London</td><td>300</td></tr> <tr><td>Luxury Amsterdam</td><td>200</td></tr> </table>
... and displays as:
The HTML for each table row is repeated when each new line is added. Summary There are many container and element tags that can be used within TourCMS. These include content such as options, tours, dates, prices, pieces of HTML content from the inbuilt HTML editor etc. The web designer in full control over the presentation of the data and the travel company is in full control of the data itself. This means that once the templates have been setup, the travel company can change their website without having to have any HTML knowledge. | ||||||||
Copyright © 2003-2008 Travel UCD Limited. All rights reserved. Privacy policy TourCMS® is a registered trademark of Travel UCD Limited, United Kingdom |
||||||||