Commit 88441a2a authored by Kevin Deldycke's avatar Kevin Deldycke

Show an explicit message if no default page is defined.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@8114 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8100cda2
No related merge requests found
...@@ -50,27 +50,42 @@ ...@@ -50,27 +50,42 @@
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value> </value>
</item> </item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string encoding="cdata"><![CDATA[ <value> <string encoding="cdata"><![CDATA[
<tal:block tal:define="default_content here/WebSite_getDefaultDocumentValue | nothing;\n <tal:block tal:define="default_layout string:view_master;\n
layout_form_id here/getApplicableLayout | nothing;\n default_content here/WebSite_getDefaultDocumentValue | nothing;\n
ignore_layout request/ignore_layout | nothing;\n ignore_layout request/ignore_layout | nothing;\n
editable_mode request/editable_mode | 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_form python:not(layout_form_id) or ignore_layout or getattr(here, layout_form_id, None);\n
default_layout string:view_master;\n
layout_id layout_form/pt | default_layout;">\n layout_id layout_form/pt | default_layout;">\n
<tal:block metal:use-macro="python:getattr(here,layout_id).macros[\'master\']">\n \n
<tal:block metal:use-macro="python: getattr(here, layout_id).macros[\'master\']">\n
<tal:block metal:fill-slot="main">\n <tal:block metal:fill-slot="main">\n
<tal:block tal:condition="python:(not editable_mode) and (not ignore_layout) and (default_content is not None)">\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 <tal:block tal:define="global here python: default_content;\n
global form python:here.WebPage_view;\n global form python: here.WebPage_view;\n
global default_content_title python:here.getTitle()"/>\n global default_content_title python: here.getTitle()"/>\n
</tal:block>\n </tal:block>\n
\n
<tal:block tal:condition="python: not(default_content is None and not editable_mode)">\n
<tal:block metal:use-macro="here/form_view/macros/form_render" />\n <tal:block metal:use-macro="here/form_view/macros/form_render" />\n
</tal:block>\n </tal:block>\n
\n
<tal:block tal:condition="python: default_content is None and not editable_mode">\n
No default page defined.\n
</tal:block>\n
</tal:block>\n
</tal:block>\n </tal:block>\n
\n
</tal:block> </tal:block>
]]></string> </value> ]]></string> </value>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment