Skip to content

Commit bab1631

Browse files
committed
docs
1 parent d74cb94 commit bab1631

File tree

1 file changed

+46
-9
lines changed

1 file changed

+46
-9
lines changed

README.md

Lines changed: 46 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,48 @@
11
# cs_dynamicpages
22

3-
A new addon for Plone
3+
A new addon for Plone to create web-based dynamic pages.
44

5-
## Features
5+
The concept is pretty similar that of Volto blocks:
66

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.
846

947
## Installation
1048

@@ -27,11 +65,11 @@ make create-site
2765

2866
### Prerequisites ✅
2967

30-
- An [operating system](https://6.docs.plone.org/install/create-project-cookieplone.html#prerequisites-for-installation) that runs all the requirements mentioned.
31-
- [uv](https://6.docs.plone.org/install/create-project-cookieplone.html#uv)
32-
- [Make](https://6.docs.plone.org/install/create-project-cookieplone.html#make)
33-
- [Git](https://6.docs.plone.org/install/create-project-cookieplone.html#git)
34-
- [Docker](https://docs.docker.com/get-started/get-docker/) (optional)
68+
- An [operating system](https://6.docs.plone.org/install/create-project-cookieplone.html#prerequisites-for-installation) that runs all the requirements mentioned.
69+
- [uv](https://6.docs.plone.org/install/create-project-cookieplone.html#uv)
70+
- [Make](https://6.docs.plone.org/install/create-project-cookieplone.html#make)
71+
- [Git](https://6.docs.plone.org/install/create-project-cookieplone.html#git)
72+
- [Docker](https://docs.docker.com/get-started/get-docker/) (optional)
3573

3674
### Installation 🔧
3775

@@ -48,7 +86,6 @@ make create-site
4886
make install
4987
```
5088

51-
5289
### Add features using `plonecli` or `bobtemplates.plone`
5390

5491
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

Comments
 (0)