Steve A Posted July 26, 2012 Report Share Posted July 26, 2012 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="//www.trumba.com/scripts/spuds.js"></script> <script type="text/javascript"> $Trumba.addSpud({ webName: "name", url: {template: "viewname" }, spudType: "main"}); </script> Where it says "name", your calendar's unique web name for the published calendar 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 template name you want to use. Preview the page to make sure the code works and that you see the intended view. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.