Jump to content


Publish different calendar views on different pages

  • Please log in to reply
No replies to this topic

#1 Steve A

Steve A

    Advanced Member

  • Admin
  • PipPipPip
  • 350 posts
  • Gender:Male

Posted 26 July 2012 - 08:37 AM

You can publish different views of the same calendar on different pages of your website. All you have to do is embed, on each page where you want a new view, a slightly modified version of the main calendar spud code.

To modify the code, add a url argument that uses a template parameter to specify the view.

<script type="text/javascript" src="http://www.trumba.co...s.js"></script>
<script type="text/javascript">
webName: "name",
url: {template: "viewname" },
spudType: "main"});

Where it says "name", your calendar's unique web name appears.

You can find the template parameter's "viewname" values here. For example, if you want to publish a calendar using the 3 Columns view, replace "viewname" with "3columns".

To customize the main spud code and publish an alternate view
  • In the Publishing Control Panel, on the Calendar Spuds tab, under Main Calendar Spud, copy the main calendar spud script code.
  • Paste the code into a webpage where you want to publish the calendar with a different view.
  • Modify the code you just pasted by adding a url argument (as shown in the example above). For "view name," provide the name of the calendar view you want to use.
  • Preview the page to make sure the code works and that you see the intended view.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users