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
- In Configuration & setup, go to "Categories & Groups"
- Create a group called "Featured" (the name isn't important)
- Within this new group, create a category called "Featured" (the name isn't important)
- Go to the Product Filters (Collections) section and create a new collection called "Featured tour" (the name isn't important). Write down the collection ID (in the left column of the collections table). The collection ID is important!
- Within the new collection you have just created, in the setup, move featured to the right (i.e. selected) then save changes
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.