Skip to content

Commit f5c0cf3

Browse files
committed
mention plonecli
1 parent bfb4798 commit f5c0cf3

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/backend/behaviors.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,16 @@ class SomeViewClass:
297297
return adapter.price_gross
298298
```
299299

300+
### Creating a behavior with PloneCLI
301+
302+
To add a behavior to your add-on, you can use PloneCLI as follows:
303+
304+
```bash
305+
plonecli add behavior
306+
```
307+
308+
This will create the behavior Python file in the `behaviors` folder where you can define your behaviors schema fields and registers the behavior in the `configure.zcml`.
309+
300310
### Further reading on behaviors
301311

302312
```{seealso}

0 commit comments

Comments
 (0)