- 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
推薦閱讀
- 社會科學數(shù)據(jù)處理軟件應用
- Sakai CLE Courseware Management
- Creo Parametric 8.0中文版基礎入門一本通
- Blender 3D 2.49 Architecture, Buidlings, and Scenery
- 移動App測試的22條軍規(guī)
- 攝影照片修飾完全自學手冊
- SolidWorks 2019快速自學寶典
- SolidWorks快速入門教程(2022中文版)
- Premiere Pro CC 2018基礎教程(第3版)
- Word-Excel-PowerPoint 2010三合一辦公應用實戰(zhàn)從入門到精通(超值版)
- 音樂制作7天速成:Cubase編曲教程
- Cacti 0.8 Network Monitoring
- 零基礎學Premiere Pro短視頻制作
- 剪映真?zhèn)鳎?8招玩轉(zhuǎn)短視頻剪輯
- 中文版3ds Max 2016/VRay效果圖制作實戰(zhàn)基礎教程(全彩版)