Monday, May 31, 2010

How to install new Packages in Plone!

2. Installing a new Package in Plone
=========================

To install an egg-based product, first unpack your theme product (if in a .tgz, .tar.gz or zip archive). Copy the package to the src/ folder of your buildout. Then, edit your buildout.cfg and add the following information into the buildout, instance, and zcml sections. The actual buildout.cfg file will be much longer than the snippets below:

[buildout]
...
develop =
src/plonetheme.yourtheme (where yourtheme is the name of the theme you downloaded)

[instance]
eggs =
...
plonetheme.yourtheme

zcml =
...
plonetheme.yourtheme

The last line tells buildout to generate a ZCML snippet (slug) that tells Zope to recognize your theme product, prefixed by the namespace (plonetheme is the default). The dots [...] indicate that you may have additional lines of ZCML code here. If another package depends on the theme egg or includes its ZCML directly, you do not need to specify anything in the buildout configuration; buildout will detect this automatically. This is considered a more advanced topic.

After updating the configuration you need to run the ''bin/buildout'', which will refresh your buildout.

Then, restart your site and go to the 'Site Setup' page in the Plone interface and click on the 'Add/Remove Products' link. The 'Site Setup' area is also known as plone_control_panel, as this is the URL used to get to 'Site Setup'.

Choose the product by selecting the checkbox next to it and click the 'Install' button.


To install older version of product simply copy the package after extracting into products directory....

typical location may be...
/usr/local/Plone/zinstance/products
Then, restart your site and go to the 'Site Setup' page in the Plone interface and click on the 'Add/Remove Products' link.


No comments:

Post a Comment