[CPS-devel] Re: Making a scripted page integrated to CPS

Lennart Regebro regebro at nuxeo.com
Wed May 3 18:07:57 CEST 2006


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/


More information about the cps-devel mailing list
More information about CPS: CPS project - CVS - API

Hosting: Nuxeo: Zope service provider


This list archive provided by Nuxeo, the leaders of open source ECM. Check out the Nuxeo 5 open source, standards-based ECM project.