Annotation of kupuMPIWG/zope2/example.pt, revision 1.1

1.1     ! dwinter     1: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        !             2: "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
        !             3: <html xmlns="http://www.w3.org/1999/xhtml"
        !             4:       xmlns:tal="http://xml.zope.org/namespaces/tal"
        !             5:       xmlns:metal="http://xml.zope.org/namespaces/metal"
        !             6:       xmlns:i18n="http://xml.zope.org/namespaces/i18n"
        !             7:       tal:define="kupu here/kupu; 
        !             8:                   macros kupu/kupumacros/macros;
        !             9:                   kupu_url kupu/absolute_url;
        !            10:                   document_url here/REQUEST/URL1">
        !            11: 
        !            12:   <!--
        !            13:    Create a 'kupu editor' object in the folder where you want to
        !            14:    enable visual editing with kupu. Call it 'kupu' (you can call it
        !            15:    something else, but this template relies on this name being
        !            16:    'kupu'). Add a Page Template next to the kupu object and copy the
        !            17:    contents of this file into it. Call the Page Template 'kupu_edit'
        !            18:    or something like that. You can now point your browser at any object's
        !            19:    URL, append '/kupu_edit' and you will be able to edit the object
        !            20:    with kupu.
        !            21:    
        !            22:    Note: kupumacros require kupu_url and document_url be defined.
        !            23:    -->
        !            24: 
        !            25:   <head>
        !            26:     <title>Kupu Editor example template</title>
        !            27: 
        !            28:     <!-- include the standard scripts/stylesheets -->
        !            29:     <metal:macro use-macro="macros/head">
        !            30:     <!-- 
        !            31:     Slots in this macro can be used to add/remove/change functionality.
        !            32:     As a miniumum the kupu_bootstrap slot should be used for your own
        !            33:     startKupu() and initKupu() javascripts.
        !            34:     Changes here usually require corresponding changes to slots in the
        !            35:     fulleditor macro below.
        !            36:     -->
        !            37:     </metal:macro>
        !            38: 
        !            39:   </head>
        !            40: 
        !            41:   <body onload="kupu = startKupu();">
        !            42: 
        !            43:     <!-- include the xmlconfig -->
        !            44:     <metal:macro use-macro="macros/xmlconfig">
        !            45:       <!-- 
        !            46:       Slots in this macro can be used to add/remove/change config settings.
        !            47:       -->
        !            48:       <metal:slot fill-slot="dst"><tal:block replace="document_url" /></metal:slot>
        !            49:     </metal:macro>
        !            50: 
        !            51:     <!-- include the fulleditor -->
        !            52:     <metal:macro use-macro="macros/fulleditor">
        !            53:       <!-- 
        !            54:       Slots in this macro can be used to add/remove/change functionality.
        !            55:       Anything more than minor changes here will also require changes to
        !            56:       coresponding slots in the head macro above.
        !            57:       -->
        !            58:     </metal:macro>
        !            59:     
        !            60:   </body>
        !            61: </html>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>