O'Reilly logo

Plone 3 Products Development Cookbook by Marcos F. Romero, Juan Pablo Giménez

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Adding a content type into a product

In Creating an Archetypes product with paster, we were able to create a package shell with all the necessary code to install a product, although it was unproductive.

We are now going to add some useful functionality by means of, again, our dear paster.

Getting ready

When we ran paster in Creating an Archetypes product with paster, we highlighted some of its output, copied below:

The project you just created has local commands. These can be used from within the product.

Paster local commands are available inside the project folder. So let's move inside it:

cd ./src/pox.video

How to do it...

To add a new content type inside the product, run the following command:

paster addcontent contenttype

How it works...

This ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required