Jump to content
Sign in to follow this  
Steve A

Publish different calendar views on different pages

Recommended Posts

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.com/scripts/spuds.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

  1. In the Publishing Control Panel, on the Calendar Spuds tab, under Main Calendar Spud, copy the main calendar spud script code.
  2. Paste the code into a webpage where you want to publish the calendar with a different view.
  3. 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.
  4. Preview the page to make sure the code works and that you see the intended view.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this