1- <html xmlns =" http://www.w3.org/1999/xhtml"
2- xmlns : metal =" http://xml.zope.org/namespaces/metal"
3- xmlns : tal =" http://xml.zope.org/namespaces/tal"
4- xmlns : i18n =" http://xml.zope.org/namespaces/i18n"
5- i18n : domain =" cs_dynamicpages"
6- metal : use-macro =" context/main_template/macros/master" >
7- <body >
8-
9- <metal : custom_title fill-slot =" content-title" >
10- <h1 tal : replace =" structure context/@@title" />
11-
12- <!-- @@title view template: -->
13- <!--
14- <h1 tal:define="title context/Title" tal:condition="title" tal:content="title">
15- Title or id
16- </h1>
17- -->
18-
19- </metal : custom_title >
1+ <html xmlns =" http://www.w3.org/1999/xhtml" xmlns : metal =" http://xml.zope.org/namespaces/metal"
2+ xmlns : tal =" http://xml.zope.org/namespaces/tal" xmlns : i18n =" http://xml.zope.org/namespaces/i18n"
3+ i18n : domain =" cs_dynamicpages" metal : use-macro =" context/main_template/macros/master" >
204
21- <metal : custom_description fill-slot =" content-description" >
22- <p tal : replace =" structure context/@@description" />
23- </metal : custom_description >
24-
25- <metal : content-core fill-slot =" content-core" >
26- <metal : block define-macro =" content-core" >
5+ <body >
276
28- <h2 >Main content</h2 >
29- <!-- <div tal:replace="view/my_custom_view_method" />-->
30- <!-- <div tal:replace="context/my_custom_field" />-->
317
32- </metal : block >
33- </metal : content-core >
8+ <metal : content-main fill-slot =" main" >
9+ <main id =" content" >
10+ <tal : define tal : define =" isAnon context/@@plone_portal_state/anonymous" >
11+ <tal : conditionisAnon tal : condition =" isAnon" >
12+ <tal : replace tal : replace =" python:context.REQUEST.RESPONSE.redirect(context.portal_url(),301)" >
13+ </tal : replace >
14+ </tal : conditionisAnon >
15+ <tal : conditionisAnon tal : condition =" not:isAnon" >
16+ <div tal : replace =" structure python:context.render(request)" ></div >
17+ </tal : conditionisAnon >
18+ </tal : define >
19+ </main >
20+ </metal : content-main >
3421</body >
35- </html >
22+
23+ </html >
0 commit comments