aboutsummaryrefslogtreecommitdiffhomepage
path: root/support
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-11-26 17:36:44 +0100
committerChocobozzz <me@florianbigard.com>2021-11-26 17:36:55 +0100
commit8afade2607e072221a8ff8c108bd1787a3501a2d (patch)
treecb4b3724cf38076cfd5850be727535a92e85fab3 /support
parent7137377d097a74087ed062c8071c1aa5c717c7f7 (diff)
downloadPeerTube-8afade2607e072221a8ff8c108bd1787a3501a2d.tar.gz
PeerTube-8afade2607e072221a8ff8c108bd1787a3501a2d.tar.zst
PeerTube-8afade2607e072221a8ff8c108bd1787a3501a2d.zip
Introduce plugin id selectors
Diffstat (limited to 'support')
-rw-r--r--support/doc/plugins/guide.md9
1 files changed, 8 insertions, 1 deletions
diff --git a/support/doc/plugins/guide.md b/support/doc/plugins/guide.md
index acf4718e4..3785246a7 100644
--- a/support/doc/plugins/guide.md
+++ b/support/doc/plugins/guide.md
@@ -3,7 +3,6 @@
3<!-- START doctoc generated TOC please keep comment here to allow auto update --> 3<!-- START doctoc generated TOC please keep comment here to allow auto update -->
4<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --> 4<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
5 5
6
7- [Concepts](#concepts) 6- [Concepts](#concepts)
8 - [Hooks](#hooks) 7 - [Hooks](#hooks)
9 - [Static files](#static-files) 8 - [Static files](#static-files)
@@ -28,6 +27,7 @@
28 - [Get server config](#get-server-config) 27 - [Get server config](#get-server-config)
29 - [Add custom fields to video form](#add-custom-fields-to-video-form) 28 - [Add custom fields to video form](#add-custom-fields-to-video-form)
30 - [Register settings script](#register-settings-script) 29 - [Register settings script](#register-settings-script)
30 - [Plugin selector on HTML elements](#plugin-selector-on-html-elements)
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 - [Add/remove left menu links](#addremove-left-menu-links)
33 - [Publishing](#publishing) 33 - [Publishing](#publishing)
@@ -759,6 +759,13 @@ async function register ({ registerSettingsScript }) {
759 }) 759 })
760} 760}
761``` 761```
762#### Plugin selector on HTML elements
763
764PeerTube provides some selectors (using `id` HTML attribute) on important blocks so plugins can easily change their style.
765
766For example `#plugin-selector-login-form` could be used to hide the login form.
767
768See the complete list on https://docs.joinpeertube.org/api-plugins
762 769
763#### HTML placeholder elements 770#### HTML placeholder elements
764 771