|
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||
| Trumba Help Center | FAQ | Support Forum | Email Support | |||||||||||||||||||||||||||||||||||||||||||||||||||
Supported properties for customizing spudsIn addition to URL parameters that fine-tune spud display or behavior, you can use properties. Properties can do things like:
Topic links
Properties supported by multiple spuds
Main spud properties
Upcoming event spud properties
Upcoming events crawler spud propertiesFor CSS properties (all but Speed), you can specify any valid CSS value, including multiple values where allowed.
ExamplesThis section uses the Trumba University demonstration calendar to show how to use properties to do the following:
Tip For more examples, see the Examples section of the How the spud code works topic, and the Spud FAQs. Customize the upcoming events spudUse this code to tell the upcoming events spud to display without a footer and set a custom header and border color. The teaserBase also directs a visitor who clicks an event link to the main calendar hosted on the Trumba Connect site. To keep visitors on your site, you can replace the Trumba Connect URL with the URL of the page in which your main spud is embedded.
$Trumba.addSpud(
{ webName: "trumbauevents", spudType: "upcoming", HideFooter: "true", HeaderColor: "#cc99ff", BorderColor: "#8FFF1F", teaserBase: "http://university.trumba.com/online_calendars/main_month.aspx"}); Add a detailBaseThe main spud defined by this code has a detailBase property to show event details in another main spud that's embedded in a separate page. In this case, the page is http://university.trumba.com/online_calendars/control_spuds.aspx.
<script type="text/javascript">
$Trumba.addSpud( { webName: "trumbauevents", spudType: "main", detailBase: "http://university.trumba.com/online_calendars/control_spuds.aspx" }); </script> Open event details in a new windowThe main spud defined by this code uses the detailBase property along with the openInNewWindow property to show event details in new window for a spud that's embedded in a separate page. This particular example opens the details on a calendar's Trumba Connect hosted page. (The detailBase property should be set to the URL of the page that holds a main calendar spud.)
<script type="text/javascript">
$Trumba.addSpud( { webName: "trumbauevents", spudType: "main", openInNewWindow: "true", detailBase: "http://university.trumba.com/online_calendars/main_month.aspx" }); </script> Customize the crawler spudHere's a crawler that takes advantage of all of the customization properties and adds a URL argument.
$Trumba.addSpud (
{ webName: "trumbauevents", spudType: "crawler", Width: "100%", FontSize: "8pt", FontFamily: "Verdana, Sans-Serif", FontWeight: "bold", FontColor: "#0066ff", HoverColor: "#9933ff", BackgroundColor: "#330033", Border: "medium solid #0066ff", Speed: "90", url: { events: "15"}, teaserBase: "http://university.trumba.com/online_calendars/main_month.aspx" }); Create multiple configurations of the same control or promotion spudUse the SpudConfig property to publish the same control or promotion spud on multiple web pages with different settings or styles for a calendar. (Multiple configurations are not available for the main calendar view.) The spud configuration name in the script identifies which spud configuration is used. The spudConfig name is case insensitive and must be unique for a particular spud type (for example, upcoming events). The example shows two configured upcoming events spuds that use different settings for different pages on a web site; the first is the default and the second has a spud configuration name of "futureevents". Notice the difference in the spud settings and scripts.
<script type="text/javascript">
$Trumba.addSpud( { webName: "trumbauevents", spudType: "upcoming", teaserBase: "http://university.trumba.com/online_calendars/main_month.aspx" }); </script>
<script type="text/javascript">
$Trumba.addSpud( { webName: "trumbauevents", spudType: "upcoming", spudConfig: "upcomingforhelp", teaserBase: "http://university.trumba.com/online_calendars/main_month.aspx" }); </script>
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
| Privacy | Terms | Public Calendars | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| © 2004–2008 Trumba Corporation. All rights reserved. Click for trademark information. | ||||||||||||||||||||||||||||||||||||||||||||||||||||