diff options
author | Chocobozzz <me@florianbigard.com> | 2021-06-07 13:16:50 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-06-07 13:20:08 +0200 |
commit | 8beea2d37d90e9a12d895f4a9eebc1e532313d8c (patch) | |
tree | 22bd28d42531f068517e20a0b9c5344fe6a6aa2c /support/doc/plugins/guide.md | |
parent | 9cc4b9c61f4caa7414420f1c11ba4380c516a7a2 (diff) | |
download | PeerTube-8beea2d37d90e9a12d895f4a9eebc1e532313d8c.tar.gz PeerTube-8beea2d37d90e9a12d895f4a9eebc1e532313d8c.tar.zst PeerTube-8beea2d37d90e9a12d895f4a9eebc1e532313d8c.zip |
Add ability to filter menu links
Diffstat (limited to 'support/doc/plugins/guide.md')
-rw-r--r-- | support/doc/plugins/guide.md | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/support/doc/plugins/guide.md b/support/doc/plugins/guide.md index db1f1863c..f4d3c4800 100644 --- a/support/doc/plugins/guide.md +++ b/support/doc/plugins/guide.md | |||
@@ -29,6 +29,7 @@ | |||
29 | - [Add custom fields to video form](#add-custom-fields-to-video-form) | 29 | - [Add custom fields to video form](#add-custom-fields-to-video-form) |
30 | - [Register settings script](#register-settings-script) | 30 | - [Register settings script](#register-settings-script) |
31 | - [HTML placeholder elements](#html-placeholder-elements) | 31 | - [HTML placeholder elements](#html-placeholder-elements) |
32 | - [Add/remove left menu links](#addremove-left-menu-links) | ||
32 | - [Publishing](#publishing) | 33 | - [Publishing](#publishing) |
33 | - [Write a plugin/theme](#write-a-plugintheme) | 34 | - [Write a plugin/theme](#write-a-plugintheme) |
34 | - [Clone the quickstart repository](#clone-the-quickstart-repository) | 35 | - [Clone the quickstart repository](#clone-the-quickstart-repository) |
@@ -744,6 +745,11 @@ async function register (...) { | |||
744 | 745 | ||
745 | See the complete list on https://docs.joinpeertube.org/api-plugins | 746 | See the complete list on https://docs.joinpeertube.org/api-plugins |
746 | 747 | ||
748 | #### Add/remove left menu links | ||
749 | |||
750 | Left menu links can be filtered (add/remove a section or add/remove links) using the `filter:left-menu.links.create.result` client hook. | ||
751 | |||
752 | |||
747 | ### Publishing | 753 | ### Publishing |
748 | 754 | ||
749 | PeerTube plugins and themes should be published on [NPM](https://www.npmjs.com/) so that PeerTube indexes | 755 | PeerTube plugins and themes should be published on [NPM](https://www.npmjs.com/) so that PeerTube indexes |