diff --git a/README.md b/README.md index f245642f83ddc378df926e1926b204982a3ed32f..b6669029b86a86c247f6ee63f2f19496db1ef953 100644 --- a/README.md +++ b/README.md @@ -936,42 +936,51 @@ Any parameter of your config.json can take benefits from the source generation: ``` -### Platforme hooks +### Platform hooks Here an exemple for use hooks to insert any content in any strategic area of Orbit. -In this first sample, hooks sections are added in bottom of main menu and dashboard. +In this first sample, hooks sections are added in bottom of dashboard. At this bottom, exemple of configuration added in `config.json`on same level of `components`. ```json -"hooks": { - "sub_dashboard": [ - { - "tagname" : "xxxx", - "attributes": { - "mode": "mode-1" - } + "hooks": { + "sub_dashboard": [ + { + "attributes": { + "data-src": "server://resources/", + "displayMode": "simpleList", + "id-prefix": "default", + "post-data-src": "server://resources/", + "post-data-type-src": "server://types/", + "range-resource-type": "server://types/" }, - { - "tagname" : "yyy", - "attributes": { - "data-mode": "mode-1", - "data-mode-2": "mode-2" - } - } - ], - "sub_menu": [ - { - "tagname" : "aaaaa", - "attributes": { - "mode": "mode-5" - } - } - ] - }, + "tagname": "solid-resource" + }, + { + "attributes": { + "data-src": "server://events/", + "displayMode": "simpleList", + "id-prefix": "default", + "post-data-src": "server://events/" + }, + "tagname": "solid-event" + }, + { + "attributes": { + "class": "cardsList", + "data-src": "server://resources/", + "displayMode": "cardsList", + "id-prefix": "default", + "post-data-src": "server://resources/", + "post-data-type-src": "server://types/", + "range-resource-type": "server://types/" + }, + "tagname": "solid-resource" + } + ] +} ``` -Will result on a virtual federated container containing `http://serverA/users/`, `http://serverB/users/` and `http://serverC/users/` on data-src. - ## Troubleshooting ### Circles or Projects are missing the @user list