- 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
推薦閱讀
- Joomla! 1.5 Site Blueprints
- AutoCAD 2017實用教程
- AIGC輔助數據分析與挖掘:基于ChatGPT的方法與實踐
- ImageMagick Tricks
- Instant MuseScore
- SolidWorks快速入門教程(2022中文版)
- iPhone User Interface Cookbook
- IBM WebSphere eXtreme Scale 6
- AutoCAD 2020中文版入門、精通與實戰
- 短視頻剪輯基礎與實戰應用(剪映電腦版)
- Photoshop CC 2018基礎教程(第3版)
- KNIME視覺化數據分析
- Flash CS6 動畫制作實戰從入門到精通
- 中文版CATIA V5 技術大全
- Photoshop CC 從入門到精通