lopez adrian wrote: > Hello, > I succed to make my document works fine with only zope models. > > I use a DTML document (name list) that list other DTML documents with > the fields i want (named ASO-1234-01 for example). I add a submit button > that call a python script wich create others DTML Documents, and refresh > the list document. > > Now i want to integrate that in CPS. I want this List to appear in the > main content of a folder in CPS. > > For example if i go to cps/chronos i want to see the CPS decoration > (navigation bar, header, breadcrumb, etc) and the list as main content > of the folder. > > How can i do that? You use a macro. The main macro for CPS is called main_template/macros/master. You put your content into a slot named "main". So, a minimal page would be something like this: <html metal:use-macro="here/main_template/macros/master"> <metal:main fill-slot="main"> Hello world! <-- This will be the main content </metal:main> </html> -- Lennart Regebro, Nuxeo http://www.nuxeo.com/ CPS Content Management http://www.cps-project.org/
Hosting: Nuxeo: Zope service provider