[Erp5-report] r8783 - /erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Jul 25 20:31:34 CEST 2006
Author: kevin
Date: Tue Jul 25 20:31:30 2006
New Revision: 8783
URL: http://svn.erp5.org?rev=8783&view=rev
Log:
Use container/content_layout to locally custom news section. Thanks to this I can remove the dirty branching code.
Modified:
erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/section_form_view.xml
Modified: erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/section_form_view.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/section_form_view.xml?rev=8783&r1=8782&r2=8783&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/section_form_view.xml (original)
+++ erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/section_form_view.xml Tue Jul 25 20:31:30 2006
@@ -54,16 +54,17 @@
<key> <string>_text</string> </key>
<value> <string encoding="cdata"><![CDATA[
-<tal:block tal:define="default_layout string:view_master;\n
- default_content here/WebSite_getDefaultDocumentValue | nothing;\n
- ignore_layout request/ignore_layout | nothing;\n
- editable_mode request/editable_mode | nothing;\n
- layout_form_id here/getApplicableLayout | nothing;\n
- layout_form python:not(layout_form_id) or ignore_layout or getattr(here, layout_form_id, None);\n
- layout_id layout_form/pt | default_layout;">\n
+<tal:block tal:define="default_layout string: view_master;\n
+ default_content here/WebSite_getDefaultDocumentValue | nothing;\n
+ ignore_layout request/ignore_layout | nothing;\n
+ editable_mode request/editable_mode | nothing;\n
+ layout_form_id here/getApplicableLayout | nothing;\n
+ layout_form python: not(layout_form_id) or ignore_layout or getattr(here, layout_form_id, None);\n
+ layout_id layout_form/pt | default_layout;">\n
\n
<tal:block metal:use-macro="python: getattr(here, layout_id).macros[\'master\']">\n
<tal:block metal:fill-slot="main">\n
+\n
<tal:block tal:condition="python: (not editable_mode) and (not ignore_layout) and (default_content is not None)">\n
<tal:block tal:define="global here python: default_content;\n
global form python: here.WebPage_view;\n
@@ -75,16 +76,9 @@
</tal:block>\n
\n
<tal:block tal:condition="python: default_content is None and not editable_mode">\n
- <tal:block tal:replace="nothing"><!--\n
- Render a special page for news web_sites.\n
- --></tal:block>\n
- <tal:block tal:condition="python: context.getId().lower() == \'news\'">\n
- <tal:block metal:use-macro="python: getattr(here, \'%s_news_list\' % here.WebSite_getSiteValue().getId()).macros[\'master\']"/>\n
- </tal:block>\n
- <tal:block tal:condition="python: context.getId().lower() != \'news\'">\n
- No default page defined.\n
- </tal:block>\n
+ This section contain no document.\n
</tal:block>\n
+\n
</tal:block>\n
</tal:block>\n
\n
More information about the Erp5-report
mailing list