With URL parameters, you can control spud publishing settings programmatically either through spud code or URL-encoded query strings.
For example:
Tip You can also use URL parameters to control the content of calendar feeds. Find out which URL parameters work with feeds in this table and learn more about feed-specific parameters and custom feed syntax here.
URL-encoded query strings consist of parameters and the values you assign to them. You append query strings to the URLs of pages on your site where spuds are embedded.
trumbaEmbed
parameter is also case sensitive and must be written exactly as shown.The rest of this procedure will use https://www.yoursite.com/calendar.html
as that URL.
Tip If you want to create URLs for your hosted calendar page, use the URL https://www.qatrumba.com/calendars/your calendar name.
trumbaEmbed=
parameter (case sensitive):
https://www.yoursite.com/calendar.html?trumbaEmbed=
Note If the default URL for your calendar page already contains a query string (a question mark and one or more parameters), instead of typing another question mark, add URL-encoded Trumba Connect parameters to the existing string as described in the next two steps.
date
parameter, which tells Trumba Connect which date to start with.
https://www.yoursite.com/calendar.html?trumbaEmbed=date%3D20221205
In the URLs above, the question mark (?) delimits the base URL and the query strings. %3D
is the URL-encoded equals sign (=).
For example, add a parameter to the above URL to change the default view to Classic Day:
https://www.yoursite.com/calendar.html?trumbaEmbed=date%3D20221205%26template%3Dday
To make the URL the destination of a link:
<a href="https://www.yoursite.com/calendar.aspx?trumbaEmbed=date%3D20221205%26template%3Dday">Today's Events!</a>
In spud code, you include URL parameters in the url
argument. Each spud, depending upon its purpose, supports a specific set of parameters. The table below lists the spuds (or spud types) that support each parameter.
In the following example, parameters in the url
argument set the main calendar view to List and the date with which the event display begins to December 5, 2022.
Tip In the spud code url
argument, text parameter values must be surrounded by quotes. Number parameter values do not require quotes.
The following table lists the URL parameters and the spuds that support them. Click a parameter name to learn more.
Note If you add a parameter to a spud that doesn't support it, the unsupported parameter is ignored. For example, the template parameter wouldn't have any effect on a promotion spud, because promotion spuds don't show or control the main calendar view.
Parameter | What you set with it | Spuds that support it |
---|---|---|
template | The view in which the main calendar is displayed | Main calendar, view chooser |
mixcontrol | Displays or hides the mix-in control that's included with the main calendar spud; does not affect the standalone mix-in spud | Main calendar |
date | The date to display in the default calendar view using yyyymmdd format | Main calendar, date finder, month list |
duration | Must be accompanied by the date parameter; specifies a date range using #d format within which an event must occur to be displayed | Main calendar map view |
filterview | Filter spud contents by a pre-defined filter view | Main calendar, promotion spuds, month list, calendar list, filter spuds, calendar feeds |
filter1 filter2 filter3 | The values for the first, second, and/or third filters (when your calendar uses one or more filters) | Main calendar, promotion spuds, month list, filter spuds, calendar feeds |
search | Display events that contain search terms | Main calendar, date finder, month list, calendar feeds |
lat | Display events at or within a specific radius of a location identified by a latitude value Note Must be used with | Main calendar, promotion spuds, month list, calendar feeds |
lon | Display events at or within a specific radius of a location identified by a longitude value Note Must be used with | Main calendar, promotion spuds, month list, calendar feeds |
radius | Identifies the distance away from a specific latitude and longitude location that an event can occur and still be displayed Note Must be used with | Main calendar, promotion spuds, month list, calendar feeds |
mixin or mixout | The default mix-in state | Main calendar, promotion spuds, month list, calendar list, filter spuds, calendar feeds |
updates | Display or hide markers that appear on the calendar when you make updates | Main calendar |
events | Number of events to show in a promotion spud | Promotion spuds |
zone | Set the time zone using the index number for the zone you want to view | Main calendar, promotion spuds, month list, calendar feeds |
view | Whether to display main calendar or event details | Main calendar |
eventid | The event to view when the value of the view parameter is the event detail | Main calendar, promotion spuds |
select | Whether to allow single- or multiple-event selection for taking event actions | Main calendar |
Paging and grouping settings | How to page, group, and subgroup events, how many events per page, and whether multi-day events appear on all days or just the first day | Main calendar |
headinglevel | For accessibility purposes, improve screen reader users' ability to navigate webpages where spuds are embedded by assigning specific heading levels to each spud | Main calendar, promotion, and control spuds |