Hello,
I'm looking to create a weather widget with pre-determined cities to display the weather for. In the widget properties I'd like to add a drop down menu of cities that the users can pick from. I can't seem to figure out how to add drop down lists instead of the radio buttons.
I'm *very* new to creating widgets so I may need a lot of background knowledge. I've toyed with Jive's HelloWorldWidget and that's about it. I'm trying to read as much as I can but I've found there's a gap between the standard Jive documentation and what other people are creating.
Thanks for any help you can provide.
Riley
I'd also like to do this exact thing. It would greatly help my users.
Anyone from Jive have an idea?
Cheers,
Devin
As far as I'm aware, the only way to do this right now is to modify the widget-props.ftl template directly and add in the drop-down list with the options.
Thanks Vinh,
Would this process potentially break the upgrade path, or is there a way
to do it safely?
I'm having trouble with where to place my code in the widget-props.ftl file. It will be within the <div class="jive-widget-edit-container">, as Vinh mentioned to me (in another converstation).
I figured I'd do something like this:
<#if widgetFrame.widget.getTitle(widgetContext)?js_string == "WidgetName">
// My Code (using HTML select & option tags for the drop-down)
<#else>
// Proceed as normal.
I haven't been looking at this for a while, but last time I was I was looking for an appropriate place for my code.
I was also wondering how to correctly over-write the standard widget-props.ftl so that only my widget uses the edited version. Where in my jar would I place it? And do I have to point to it explicitly somewhere in my Java code, plugin.xml, or my .properties file?
Riley
Edit: Now that I think about it, if I can get widget-props.ftl over-writing the default for my plug in only, that if/else block will be unnecessary.
Jive combines the most powerful features of collaboration software, community software,
social networking software & social media monitoring into the leading SBS solution.
© Copyright 2000–2010 Jive Software. All rights reserved.
915 SW Stark St., Suite 400, Portland, OR 97205
Sales: 877-495-3700 | General: 503-295-3700
Privacy Policy | Sitemap | Jobs | Contact Us