The paging and grouping parameters are optional parameters that can be:
url
argument in the $Trumba.addSpud() method.trumbaEmbed
parameter in a URL-encoded query string.Paging and grouping parameters control how events are grouped (for example, by month or week) and how many events display per page. Not all calendar views support all of the paging and grouping parameters. If you use a parameter a view doesn't support, the parameter is ignored.
In the Publishing Control Panel, when you set up and customize a main calendar view, you can set the paging and grouping options you want to use. Programmatic access to the paging and grouping parameters lets you provide alternative views.
For example, you might set up a main calendar Table view to group events by week and list 30 events per page. Using the URL parameters, you could also provide an alternate view that groups events by month, subgroups them by location, and lists only 15 events per page.
Paging and grouping URL parameters include:
Each parameter is described in more detail below.
Main calendar spud
The paging
parameter works with the events
parameter to control the number of events that make up one page.
Displays, as closely as possible, the number of events set in the Publishing Control Panel or the events
parameter, while preventing events that occur within the same group from breaking across pages.
For example, suppose events are grouped by week and the events
parameter is set at 20. If 22 events occur in one week, all 22 will be listed on a single page.
Displays exactly the number of events set in the Publishing Control Panel or the events
parameter.
The events
parameter specifies the number of events per page. The specific number of events that displays depends upon the paging setting in the Publishing Control Panel or the paging
parameter.
Any whole number between 1 and 1000.
The groupby
parameter specifies the time period by which events are grouped.
|
|
The subgroupby
parameter specifies how events are organized within groups.
Takes the same values as the groupby parameter, as well as the following:
|
|
The groupspan
parameter controls how multi-day events appear within groups.
Displays multi-day events in all of the groups that include dates on which the events occur, even if the events started in the past.
Displays multi-day events only in the group that includes the dates on which the events start.
url
argument, $Trumba.addSpud() method, Main calendar spudDisplays approximately 30 events per page grouped by month in the main calendar spud. Multi-day events appear only in the group that contains the date on which the events start.
In the main calendar spud at the base URL, displays 50 events per page, grouped by week, subgrouped by location, in List view.
Note If a promotion spud is embedded in the page located at the base URL, the events
parameter applies to the promotion spud as well as the main calendar spud.
http://www.yoursite.com/calendar.html?trumbaEmbed=template%3Dlist%26events%3D50%26groupby%3Dweek%26subgroupby%3Dlocation
Tip %3D is the URL-encoded equals sign (=). %26 is the URL encoded ampersand (&).