From 8beea2d37d90e9a12d895f4a9eebc1e532313d8c Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 7 Jun 2021 13:16:50 +0200 Subject: Add ability to filter menu links --- support/doc/plugins/guide.md | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'support/doc/plugins/guide.md') 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 @@ - [Add custom fields to video form](#add-custom-fields-to-video-form) - [Register settings script](#register-settings-script) - [HTML placeholder elements](#html-placeholder-elements) + - [Add/remove left menu links](#addremove-left-menu-links) - [Publishing](#publishing) - [Write a plugin/theme](#write-a-plugintheme) - [Clone the quickstart repository](#clone-the-quickstart-repository) @@ -744,6 +745,11 @@ async function register (...) { See the complete list on https://docs.joinpeertube.org/api-plugins +#### Add/remove left menu links + +Left menu links can be filtered (add/remove a section or add/remove links) using the `filter:left-menu.links.create.result` client hook. + + ### Publishing PeerTube plugins and themes should be published on [NPM](https://www.npmjs.com/) so that PeerTube indexes -- cgit v1.2.3