plone.app.z3cform layout

thomas desvenain <[email protected]>
Newsgroups gmane.comp.web.zope.plone.devel
Message-ID <CAFn5D-iBecqgU59GqD+ZCNx+Haar==63eKb+7Z0LnXwJ7nJYMQ@mail.gmail.com>
Hi,

in plone.app.z3cform,form layout.pt is written like that, overwriting all
'main' slot :

    <metal:main fill-slot="main">
        <metal:main-macro define-macro="main">
            <h1 class="documentFirstHeading"
tal:content="view/label">Title</h1>
            <div id="content-core" tal:content="structure view/contents" />
        </metal:main-macro>
    </metal:main>

Is there a good reason for that ? I think it is very annoying because it
remove viewlet managers. So you can't use viewlets on any form using
plone.app.z3cform

What do you think about writing it like this :

    <metal:main fill-slot="content-title">
         <h1 class="documentFirstHeading"
tal:content="view/label">Title</h1>
    </metal:main>

    <metal:main fill-slot="content-core">
         <div id="content-core" tal:content="structure view/contents" />
    </metal:main>

Thanks

-- 
Thomas Desvenain

Téléphone : 09 51 37 35 18

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk

_______________________________________________
Plone-developers mailing list
Plone-developers-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/plone-developers
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.