[Product-Developers] Re: migrating portlets from 2.5 to 3

Martin Aspeli optilude at gmx.net
Wed Oct 22 18:45:51 UTC 2008


Espen Moe-Nilssen wrote:
> Hi
> 
> When migrating a site from 2.5 to 3 that has a product with 30+ 
> portlets. The portlets can be added as classic portlets without doing 
> any changes in the portlets itself.
> Is there a fast way to convert them to plone 3 portlets so they can be 
> seen as a choice in @@manage-portlets?

Use the 'archetype' paster template and the 'addcontent portlet' local 
command to create all the required portlets. They shouldn't need any 
settings, but copy your portlet template to be used by the renderer.

You'll need to make some changes, though, e.g. to get around the need 
for global_defines and to remove anything outside the macro definition 
that you don't want to appear, but it shouldn't be too hard.

Cheers,
Martin

-- 
Author of `Professional Plone Development`, a book for developers who
want to work with Plone. See http://martinaspeli.net/plone-book





More information about the Product-Developers mailing list