Revision 495,
1.1 KB
checked in by vahur, 13 years ago
(diff) |
made a list of content types. Also made config.py accessible from python scripts and page templates.
|
Line | |
---|
1 | <html xmlns:tal="http://xml.zope.org/namespaces/tal" |
---|
2 | xmlns:metal="http://xml.zope.org/namespaces/metal" |
---|
3 | i18n:domain="lemill"> |
---|
4 | <body> |
---|
5 | <div metal:define-macro="portlet" |
---|
6 | tal:define="related context/find_related_stories" |
---|
7 | tal:condition="python:not(isAnon) and context.meta_type in modules['Products.LeMill.config'].ALL_CONTENT_TYPES and related"> |
---|
8 | <dl class="portlet" id="portlet-"> |
---|
9 | |
---|
10 | <dt class="portletHeader" i18n:translate="heading_related_stories"> |
---|
11 | Related stories |
---|
12 | </dt> |
---|
13 | |
---|
14 | <dd class="portletItem"> |
---|
15 | <div tal:repeat="rel related" i18n:translate="link_title_by_creator"> |
---|
16 | <a i18n:name="title" href="rel/getURL" tal:attributes="href rel/getURL" tal:content="rel/Title" style="display:inline"></a> |
---|
17 | by |
---|
18 | <span i18n:name="creator" tal:replace="rel/Creator" style="display:inline" /> |
---|
19 | </div> |
---|
20 | </dd> |
---|
21 | |
---|
22 | <dd class="portletFooter"> |
---|
23 | </dd> |
---|
24 | |
---|
25 | </dl> |
---|
26 | |
---|
27 | </div> |
---|
28 | </body> |
---|
29 | </html> |
---|
Note: See
TracBrowser
for help on using the repository browser.