Skip to content

Commit fd66c88

Browse files
committed
horizontal rule
1 parent 83364fa commit fd66c88

3 files changed

Lines changed: 7 additions & 43 deletions

File tree

src/cs_dynamicpages/views/configure.zcml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,7 @@
66

77
<!-- -*- extra stuff goes here -*- -->
88

9-
<browser:page
10-
name="horizontal-rule-view"
11-
for="*"
12-
class=".horizontal_rule_view.HorizontalRuleView"
13-
template="horizontal_rule_view.pt"
14-
permission="zope2.View"
15-
layer="cs_dynamicpages.interfaces.ICsDynamicpagesLayer"
16-
/>
9+
1710

1811
<browser:page
1912
name="dynamic-view"
@@ -34,6 +27,10 @@
3427
template="featured_view.pt"
3528
name="cs_dynamicpages-featured-view"
3629
/>
30+
<browser:page
31+
name="cs_dynamicpages-horizontal-rule-view"
32+
template="horizontal_rule_view.pt"
33+
/>
3734
</browser:pages>
3835

3936
</configure>

src/cs_dynamicpages/views/dynamic_view.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,6 @@ def features(self):
1818
context=self.context)
1919
if dynamic_page_folder:
2020
return api.content.find(portal_type="DynamicPageRow",
21+
sort_on="getObjPositionInParent",
2122
context=dynamic_page_folder[0].getObject())
2223
return []
Lines changed: 1 addition & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1 @@
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>
20-
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">
27-
28-
<h2>Main content</h2>
29-
<!--<div tal:replace="view/my_custom_view_method" />-->
30-
<!--<div tal:replace="context/my_custom_field" />-->
31-
32-
</metal:block>
33-
</metal:content-core>
34-
</body>
35-
</html>
1+
<hr class="border border-primary border-3 opacity-75">

0 commit comments

Comments
 (0)