[Product-Developers] multipage content type with "next/prev" buttons

Per Erik Strandberg per.strandberg at incf.org
Mon Mar 17 15:10:43 UTC 2008


Hi,

I am looking for some documentation on how to activate the next/previous 
buttons in the edit form (or some other nice solution to get the same 
thing), I can see them in the generated html but they do not show up 
when I look at the page.

I am trying to create a "long" content type on many pages:
http://pererikstrandberg.se/blog/plone/MultipageContentType.tar.gz
or
http://paste.plone.org/20194

The content type I'm testing on looks like this

class MultiPageContentType(BaseContent):

     schema = Schema((
         TextField(
             name='Beginning',
             schemata='Part One: beginning',
             widget=RichWidget(),
             ),
         TextField(
             name='Middle',
             schemata='Part Two: middle',
             widget=RichWidget(),
             ),
         TextField(
             name='End',
             schemata='Part Three: end',
             widget=RichWidget(),
             ),
         )) + BaseSchema.copy()

     schema['title'].schemata = 'Part One: beginning'
     schema.moveField('title', before="Beginning")

     _at_rename_after_creation = True


Thanks
Per


-- 
Per Erik Strandberg, M.Sc, M.Sc
System Developer

International Neuroinformatics Coordinating Facility
Secretariat
Karolinska Institutet
Nobels väg 15A
SE-171 77 Stockholm
Sweden







More information about the Product-Developers mailing list