You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+46-9Lines changed: 46 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,48 @@
1
1
# cs_dynamicpages
2
2
3
-
A new addon for Plone
3
+
A new addon for Plone to create web-based dynamic pages.
4
4
5
-
## Features
5
+
The concept is pretty similar that of Volto blocks:
6
6
7
-
TODO: List our awesome features
7
+
- You can build a page using reusable items.
8
+
- Each item can have different fields
9
+
- Each item can have different views
10
+
11
+
## Provided Content Types
12
+
13
+
- DynamicPageFolder: this content type will be created in a given folder, and will be the container
14
+
where all the rows will be added.
15
+
16
+
- DynamicPageRow: this content type will be the one that will be rendered in a separate row in the view
17
+
18
+
- DynamicPageRowFeatured: this content type can be used to save static information that can be shown in a
19
+
row. For instance: each of the items of a slider need a title, a description or an image. They can be added
20
+
using this content-type
21
+
22
+
## Provided View
23
+
24
+
There is just one view `dynamic_view` registered for Folders and Naviation roots
25
+
26
+
### Different fields
27
+
28
+
To provide different fields, you should register standard `behaviors` to the `DynamicPageRow`
29
+
content type.
30
+
31
+
### Different views
32
+
33
+
To provide different views, you should register standard views (using `zcml`).
34
+
35
+
Those views must be registered for implementers of `cs_dynamicpages.content.dynamic_page_row.IDynamicPageRow`
36
+
and their name _must_ start by `cs_dynamicpages-`.
37
+
38
+
### Restrict fields in the row edit view
39
+
40
+
You may register several behaviors for `DynamicPageRow` objects but only use some of the fields
41
+
provided by them in a given view.
42
+
43
+
You can restrict which fields are shown in the edit form of the `DynamicPageRow` going to the
44
+
Dynamic Pages Controlpanel, and setting there the list of fields that will be shown when editing
45
+
each of the row types.
8
46
9
47
## Installation
10
48
@@ -27,11 +65,11 @@ make create-site
27
65
28
66
### Prerequisites ✅
29
67
30
-
-An [operating system](https://6.docs.plone.org/install/create-project-cookieplone.html#prerequisites-for-installation) that runs all the requirements mentioned.
- An [operating system](https://6.docs.plone.org/install/create-project-cookieplone.html#prerequisites-for-installation) that runs all the requirements mentioned.
### Add features using `plonecli` or `bobtemplates.plone`
53
90
54
91
This package provides markers as strings (`<!-- extra stuff goes here -->`) that are compatible with [`plonecli`](https://github.com/plone/plonecli) and [`bobtemplates.plone`](https://github.com/plone/bobtemplates.plone).
0 commit comments