View and eventid URL parameters
The view= and eventid= URL parameters specify whether to display the main Trumba® calendar or a single event's event details page.
Parameter
view=
Specifies whether to display the calendar or a single event's event details page. If view= is not included, the default view is the main calendar.
Values
- main
Display the calendar.
- event
Display the event details page for an event. When you set view=event, you must also use the eventid parameter to specify which event's details page to show. If view=event and there is no eventid parameter, the view parameter is ignored.
Parameter
eventid=
You must use the eventid parameter when you set view=event with the main calendar spud to display a specified event's event details page.
Values
The number that corresponds to the event id number.
To get an event's id number
- Display your calendar one of these ways:
- On the Trumba Connect hosted site (www.trumba.com/calendars/yourcalendarname), replacing yourcalendarname with the web name of your calendar.
- On the page on your website in which you embedded the main spud.
- Hover the mouse over an event description (the linked text).
When you hover over the description, the javascript code appears in the browser's status bar, as shown in the following picture:

- When you add the spud code to your web page, use the event's id number in your URL parameters, following the example below.
Example
This example displays the event details page for an event on the Trumba University Alumni demonstration calendar.
Using a URL:
http://university.trumba.com/online_calendars/alumni_detail_list.aspx?trumbaEmbed=view%3Devent%26eventid%3D64462251
Using spud code:
$Trumba.addSpud (
{ webName: "trumbaualumni",
spudType: "main",
url: { view: "event", eventid: "64462251" }});
