Commit f3a56d9b authored by Kevin Deldycke's avatar Kevin Deldycke

Add a hard-coded test to display news page with a custom rendering.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@8766 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d388d4d4
......@@ -75,7 +75,15 @@
</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 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
</tal:block>\n
</tal:block>\n
</tal:block>\n
......
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