Jump to content
bbern

Chooser Widget initialization

Recommended Posts

I have noticed that the chooser widget when initially embeded on a page is loaded with the template selection that are in the Publish Settings. I'm currently using the widget on a page with the calendar, and I manually set/override the Publish Settings with the URL parameter (template=). If I have the Publish Settings set to "List" and then initially load a page with chooser and calendar spuds on it with template="month", the calendar shows the month and the Chooser shows "list". How can I synch these up other than changing the Publish Settings? Is there a URL Param to initialize the selection of the drop down? If not, how can I do it? Is there a javascript variable I can set like the "teaser_base=" to initialize this widget or even better synchronize it with the calendar?

Share this post


Link to post
Share on other sites

bbern,

 

I can't repro this so I must not be following your question. I've created an example page below using the KEXP calendar which is set to 3 Columns layout in the Publish Settings. I've overidden the template parameter on both Spuds to be month and sure enough the Choose says Month and the calendar is a Month grid.

 

<html>
<body>
<script src="http://www.trumba.com/k.aspx?calendar=kexp&widget=chooser&template=month" type="text/javascript"></script>
<script src="http://www.trumba.com/k.aspx?calendar=kexp&template=month" type="text/javascript"></script>
</body>
</html>

 

So where did I not follow your original question?

 

-Troy

Edited by Troy

Share this post


Link to post
Share on other sites

Ahh, thats how its done then... I was only setting the template parameter on the calendar and expecting the chooser to reflect the calendar... Thanks for the tip...I never would have thought I could use the template= on the chooser widget since the "Supported URL Parameters" section in the http://www.trumba.com/help/api/urlparameters.html API help only states the "Main Calendar" supports that URL parameter.

Share this post


Link to post
Share on other sites

bbern,

 

Thanks for pointing out that the page is wrong. I'll let docs know.

 

-Troy

Edited by Troy

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

×