{module_booking}

Description

Displays Booking items.

Syntax

{module_booking render="item|collection" filter="item" itemid="neventId or classificationId" rowCount="10" collection="my_custom_collection_name" template="/folder/template.tpl"}

Note: When using named parameters always wrap the individual parameters in double quotes. Also, do note that modules using named parameters do not work for campaigns just yet.

Parameters

  • render - possible values are item or collection (the default is item). The render parameter indicates whether the template content is used to render a collection or to render a single item. Take a look at the render parameter's article for more details on how to use it
  • filter - filtering criteria for display and can be one of the following:
    • item - individual item
    • all - all items
    • latest - latest items
    • random - random item
    • randomClassified - displays a random item in a particular category
    • latestClassified - latest items in a category
    • classified - all the items in a category
  • itemid - depending on the filter chosen this can be either one of (see the Examples section for details):
    • the ID of the booking module
    • the ID of the category
    • the number of booking items to be displayed
  • rowCount - number of items per row
  • collection - use this if you need to access the module's Liquid output tags
  • template - optional, for this module this can either represent the path of the custom template you want to use, or use a blank value (template="") if you need to suppress the original output and use Liquid output tags instead

This module can be rendered using:

  • the list layout - on this layout you can use either the legacy tags or Liquid output tags. Here is a list of all the tags you can use the Event layout reference page
  • your own custom layout - take a look at the custom templates article for more details
  • Liquid collections - here are the Liquid output tags you can use:
Liquid tag Description
{{name}} Booking name including a hyperlink. The hyperlink sends the user to the event's detail layout
{{body}} Details of booking (editor content) e.g. Something about the event goes here.
{{capacity}} Total number of seats for booking e.g. 130
{{percentfull}} Percentage of booking seats already booked e.g. 40%
{{date}} - Use Liquid date switches to format the date Date of booking e.g. 24-Aug-2014
Add booking to favorites list. Optionally customize to display your own custom image for adding and removing like so - {tag_addtofavorites,<img alt="" src="/images/plus_icon" />,<img alt="" src="/images/minus_icon" />}
For additional information on how to render the output of this tag using Liquid take a look at the Enable other Liquid tags article.
Use Liquid date switches to format the day Day of Booking e.g. 24 if the booking date is 24-Aug-2014
Use Liquid date switches to format the month Month of Booking e.g. Aug if the booking date is 24-Aug-2014
Use Liquid date switches to format the year Year of Booking e.g. 2014 if the booking date is 24-Aug-2014
{{capacityEmpty}} Number of available seats left for booking e.g. 79
Use Liquid date switches to format the weekday Day of booking e.g. Saturday if the booking date is 24-Aug-2013
{{lastUpdateDate}} Date and time the booking was last updated e.g. 29-Jan-2013 08:57 PM
Tell a friend about this booking
{{classifications}} List of categories that this booking is classified under e.g. Company, Solutions

Examples

  • {module_booking filter="all"} - displays all the bookings
  • {module_booking filter="item" itemid="24407"} - displays an individual event item with the ID 24407
  • {module_booking filter="l" itemid="5"} - displays 5 latest events
  • {module_booking filter="random"} - displays a single random item
  • {module_booking filter="classified" itemid="14075"} - displays all the items classified in the category with the ID 14075
  • {module_booking filter="randomClassified" itemid="14075"} - displays a random item classified in the category with the ID 14075
  • {module_booking filter="item" itemid="63522" template="/layouts/custom/bookings.tpl"} - displays an individual item using a custom template
  • {module_booking filter="all" collection="collection1" template=""} - in this case nothing will be displayed, however the module's Liquid tags will become available in the collection1 collection.

Syntax

{module_booking,filter,ID or numberOfBookings}

Parameters

  • filter - filtering criteria for display and can be one of the following:
    • i - individual item
    • a - all items
    • l - latest items
    • r - random item
    • cr - displays a random item in a particular category
    • cl - latest items in a particular category
  • ID or numberOfBookings
    • id - the ID of the booking module. This is system generated and does not need to be changed
    • numberOfBookings - can be used in conjunction with l parameter to limit the number of bookings displayed

Layouts

Examples

  • {module_booking,a} - displays all the bookings
  • {module_booking,i,24407} - displays an individual event item with the ID 24407
  • {module_booking,l,5} - displays 5 latest events
  • {module_booking,r} - displays a single random item
  • {module_booking,c,14075} - displays all the items classified in the category with the ID 14075
  • {module_booking,cr,14075} - displays a random item classified in the category with the ID 14075
  • {module_booking,i,63522 template="/layouts/custom/bookings.tpl"} - displays an individual item using a custom template