Jump to content

How to display two different calendar views on two different web pages


BenG

Recommended Posts

I've got one calendar that I'd like to embed in my website in two different views on two different pages. On one page I'd like the month view (already done this no problem). I'd also like another page that displays the info using the Table calendar view.

I've seen where you can put certain options after the calendar name variable in the spud code, but I haven't seen where you can force a particular view when the calendar loads on the page.

Link to comment
Share on other sites

You can use the template URL parameter within your main calendar spud code. This sets the main view of a published calendar to one of the 21 views listed on the Publish Settings page.

Here is a help topic with more details and the calendar names to use in the spud code.

In this example, the main calendar spud code is being forced to display using the List calendar view

<script type="text/javascript" src="//www.trumba.com/scripts/spuds.js"></script>
<script type="text/javascript">
$Trumba.addSpud(
{ webName: "calendarname",
spudType: "main",
url: {template:"list"}
});
</script>

 

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...