Bookmark and Share
Document Actions

Writing a Custom Content Type

Up one level
(this chapter will be soon available)

(this chapter will be soon available)

by Dario Pollino last modified 2009-04-03 13:10
Contributors: Maurizio Delmonte, Davide Moro, Alice Narduzzo, Fabrizio Reale, Enrico Barra, Andrea Cannizzaro, Andrea D'Este, Maurizio Lupo, Giuseppe Masili, Matteo Sorba.

customzied view

Posted by MartinZ at 2010-02-24 17:48
By following the steps (paster addcontent view) in this section, I created a view like this:

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
lang="en"
i18n:domain="plonebook.regional_news">
<body>
<div metal:define-macro="body">
<p>Hello World!</p>
</div>
</body>
</html>

But the content of Regional News is not replaced by "Hello World". It seems my customized view did not work. Which extra step do I need to do for it?
The versions of Plone is:
Plone 3.3.2
CMF 2.1.2
Zope (Zope 2.10.9-final, python 2.4.6, linux2)
Python 2.4.6 (#1, Dec 12 2009, 23:22:54) [GCC 4.4.1 [gcc-4_4-branch revision 150839]]
PIL 1.1.6

PasteScript 1.7.3

Thanks!

Page 236, paster command

Posted by Jeff Teeters at 2010-12-22 10:25
On page 236, in the middle of the page, the book states:

Lets go back to our terminal and ask Paster to create a Selection widget instead of a String one for our region field:

$ cd ~/plonebook/src/plonebook.regional_news
$ paster addcontent atschema

The commands given (above) are the same as the commands on the previous page which create a new field. There is no explanation of how issuing the command would cause paster to create a Selection widget instead of a String one.

It appears to me that the Paster command on this page (236) does not need to be entered again if it was entered earlier as instructed on the previous page.