- Plone 3 Products Development Cookbook
- Juan Pablo Gimenez Marcos F.Romero
- 278字
- 2021-08-06 17:06:01
Automatically installing products in your Zope instance
When working on a project like ours, you will find it very useful to automatically install some products in your Zope instance at buildout time.
How to do it…
- If not done yet, add a new line in the
parts
definition at the top ofbuildout.cfg
to tell buildout to create a Plone site automatically:[buildout] ... parts = ... plonesite
- And then add a new
[plonesite]
part at the bottom of the file:[plonesite] recipe = collective.recipe.plonesite site-id = plone instance = instance products = Products.poxContentTypes
- Don't forget to build your instance and launch it once more.
./bin/buildout ./bin/instance fg
How it works…
The recipe used in [plonesite]
part here — collective.recipe.plonesite
— will create or update a new Plone site when the buildout is run. In addition, if any product is specified in the products
parameter, it will be automatically installed.
Once your Zope instance is up, you can open your Plone home page and click on the Add new drop-down menu. By clicking on the XNewsItem option, a new form should open as shown in the following screenshot:

There's more…
You also have the option to install products manually:
- Log into your Plone site as admin user.
- Click on the Site Setup link on the top-right corner and then click on the Add-on Products link, or just go to
http://localhost:8080/Plone/prefs_install_products_form
. - In the Add/Remove Products page, select poxContentTypes in the Products available for install list and press the Install button below.
See also
- Creating a Plone site
- Opening an online Python shell on Plone using Clouseau
- Creating a policy product
- Installing and configuring an egg repository
推薦閱讀
- IBM Lotus Notes 8.5 User Guide
- 從零開始:AutoCAD 2015中文版機械制圖基礎培訓教程
- Celtx: Open Source Screenwriting Beginner's Guide
- 穿越Photoshop CC
- SolidWorks2014基礎實例教程
- Premiere視頻編輯應用教程:PremierePro 2020(微課版)
- ASP.NET jQuery Cookbook
- Liferay Portal Systems Development
- Photoshop移動UI設計從入門到精通
- 中文版Maya 2014基礎培訓教程
- Drupal 7
- Service Oriented Architecture with Java
- 工作型PPT該這樣做
- Creo 6.0產品設計實例精解
- 用友(T3)會計信息化軟件考前12小時