[Product-Developers] Items ordering support in Products.AddRemoveWidget

Hendrik Bunke bunke.hendrik at googlemail.com
Wed Jul 6 09:53:40 UTC 2011


Hi,

I've just implemented it and it seems to work pretty well so far.
Made my day, thanks a lot!

regards
hendrik


--On 2011-06-06 12:04, Vitaliy Podoba wrote:
> Hi,
> 
> I've added items ordering support into AddRemoveWidget as an optional 
> feature. This is changeset I committed in order to make it all work: 
> 
>   
> http://dev.plone.org/archetypes/changeset/13670/Products.AddRemoveWidget/
> trunk
> 
> But before we can release this I'd like to hear from package 
> contributors if they see any issues with my above patch.
> 
> 
> How it works
> ------------
> 
> Existing widget integrations won't be concerned as by default ordering 
> support is switched off, and to enable it you need to pass 
> 'ordered=True' widget parameter.
> 
> By default keywords are sorted alphabetically. But after switching 
> 'ordered' option on 'Up' and 'Down' buttons appear right after 
> 'Selected' field which allow user to sort items manually. It works much 
> the same way how z3c.form's ordered select widget does.
> 
> 
> Thanks for your thoughts and any suggestions are welcome,
> Vitaliy Podoba
> 
> _______________________________________________
> Product-Developers mailing list
> Product-Developers at lists.plone.org
> https://lists.plone.org/mailman/listinfo/plone-product-developers

-- 
Dr. Hendrik Bunke
http://twitter.com/hbunke
http://hbxt.org is temporarily offline


More information about the Product-Developers mailing list