Back to index

Feature a specific tour

Many tour operator websites like to promote a single (or perhaps 2) tours every month.... and rotate through them so one month it is one tour and the next month it is another.

Here is one way to create a TourCMS template letting a non-web designer alter which tour is featured on a "featured tour" page.

Set up categories and groups

Set up your page template
Using a Single page template, use the following code style:
<TourCMSlist_tours c_id="XXX" maxdisplay="1" orderby="tour_points">
       <$TourCMStour output="t_name"$> from <$TourCMStour output="t_from_price_display"$>
     </TourCMSlist_tours>
In place of the XXX in c_id="XXX" place the collection ID that you wrote down earlier.

What this code is saying is list all tours that are in a specific collection (the featured tour collection). The maxdisplay says that only 1 tour should be listed. TourCMS will determine which tour (if more than one are currently in the featured tour collection) by the display order points. (These points can be set in each tour setup.... they are normally used to indicate some kind of commercial priority order)

Within that loop you can place any tour tags to pull out the tour name, images, description, prices etc.... hence build a featured tour page

To feature a tour
Go to a tour you want to feature and the setup page (for that tour). On the categories tab, move featured to the right (and save changes). You will need to rebuild the web page.