|
|
| Trumba Help Center | What’s New | FAQ | Support Forum | Email Support |
Publish customized views using filter viewsWhat you can learn in this topic
When you should use filter viewsFilter views provide a way to pre-filter spud and feed content by a combination of custom field values, owning calendars or custom object owning folders. In order to use filter views you must be using at least one custom field or have your content organized into multiple calendars/folders. Learn about creating custom fields. The following is a list of the primary use cases for filter views:
How do filter views relate to filter spudsFilter spuds are control spuds that you can include on your published view to allow site visitors to make filter selections. Filter views are a way for you to pre-define specific filter values that can be applied to these views. When a specific field is included in both your filter view and a filter spud, the filter spud will have the filter view filtered applied by default but the visitor may change the filter using the filter spud. Tell me more about filter spuds The process for creating filter viewsFilter views are defined within a publication and can be applied to spuds and feeds in that publication. A filter view consists of the following:
To create a filter view
How to use filter views in your websiteThere are two ways you can use filter views on your web site.
Embed spud script that includes a filterview parameterThis method is appropriate if you plan to use a separate web page on your site to display each filter view. Each page will have it's own custom spud script that specifies the filter view name in the filterview parameter. When you select a filter view in the Publishing Control Panel, the scripts for all spuds are updated to include the filterview parameter as illustrated below.
<script type="text/javascript">
$Trumba.addSpud({ webName: "my-calendar", spudType : "main" , url : { filterview : "myview" } }); </script> Note When using the filterview parameter with your main spud, be sure that the filter view is selected before copying the control spud scripts for your page. This will ensure that the filterview parameter is included on all your spuds. Learn more about customizing spud code. Link to filter views using trumbaEmbed URL argumentThis method is appropriate if you plan to use a single web page on your site to display your filter views. Instead of specifying the filter view as part of your spud script, you include the filterview parameter in the trumbaEmbed argument when linking to your main page.
http://www.trumba.com/calendars/concerts?trumbaEmbed=filterview%3dmyview
Tip The Hosted View tab in the Publish Control Panel displays a link that includes the trumbaEmbed argument for the currently selected filter view. Learn more about using trumbaEmbed to specify URL parameters. |
|
| Privacy | Terms | Public Calendars | |
| © 2004–2012 Trumba Corporation. All rights reserved. Click for trademark information. | |