Back to index

Grouping tours by collection

Often you want to create a grouped list of tours (or as we call them in TourCMS: Collections)


For example to create a list something like the Quick Book page on the Egypt Uncovered site:



Group name #A (collection)
  Tour #1
  Tour #2
  Tour #3
  Tour #4

Group name #B (collection)
  Tour #4
  Tour #5


Could be created using the following TourCMS content tags:
<TourCMSlist_collections orderby="collection_points">

<h1><$TourCMScollection output="c_name"$></h1>

  <TourCMSlist_tours orderby="tour_points" has_sale="show">
     <$TourCMStour output="t_name"$><br />
  </TourCMSlist_tours>

</TourCMSlist_collections>
Instead you may prefer to list individual trips - e.g.

Group name #A (collection)
  Tour #1  1 Jan 2010
  Tour #1  2 Jan 2010
  Tour #1  3 Jan 2010
  Tour #2  4 Jan 2010

Group name #B (collection)
  Tour #3  5 Jan 2010
  Tour #3  6 Jan 2010


For this style, use the following TourCMS content tags:
<TourCMSlist_collections orderby="collection_points">

<h1><$TourCMScollection output="c_name"$></h1>

  <TourCMSlist_departures orderby="start_date" bookable="show">
     <$TourCMSdeparture output="t_name"$>  <$TourCMSdeparture output="d_start_date"$><br />
  </TourCMSlist_departures>

</TourCMSlist_collections>

Notes
Tours or departures (trips) will be listed for each collection they are members of (i.e. they could be listed multiple times)

Instead of using TourCMSlist_collections you could hardcode the collection IDs (numbers) into the TourCMSlist_tours or TourCMSlist_departures container tags. This could give you more accurate control on which collections you list - but requires more management if you add or remove collections over time. Note the addition of c_id="1" below:
<TourCMSlist_tours orderby="tour_points" c_id="1" has_sale="show">
You can list multiple collections (comma separated). Find the ID number from the collections page within TourCMS.

For ideas on how to layout your page - you could use the format as outlined on the category page example.