New Image Widget

Warning
This product has not had a release in over 1 year and may no longer be maintained.
by Yuri last modified Feb 16, 2011 02:15 AM

A new Image widget, which shows previews if available and let you customize the template TTW

Project Description

This is just a widget, you can use it in your product:

 

from Products.NewImageWidget.NewImageWidget import NewImageWidget

and in the Schema:

 

    ImageField('image',
         sizes= {'large'   : (768, 768),
                 'preview' : (400, 400),
                 'mini'    : (200, 200),
                 'thumb'   : (128, 128),
                 'tile'    :  (64, 64),
                 'icon'    :  (32, 32),
                 'listing' :  (16, 16),
               },

         widget=NewImageWidget(
             label="Immagine di tipo nuovo",
         ),
    ),

 

 By default, it shows a preview if the image is too large, choosing the first of the scales (sizes) if the 'preview' one is not available.

 

Special thanks to vkColorWidget from which I've learned how widgets works, other than the Archetype Guide and various how-to.

Current Release
New Image Widget 0.1

Released Dec 06, 2007 — tested with Plone 2.5, Zope 2.9

First release
More about this release…

Download file Get New Image Widget for all platforms
NewImageWidget 0.1
If you are using Plone 3.2 or higher, you probably want to install this product with buildout. See our tutorial on installing add-on products with buildout for more information.

All Releases

Version Released Description Compatibility Licenses Status
0.1 Dec 06, 2007 First release More about this release…
Plone 2.5
Zope 2.9
GPL final

Comments (0)