forked from CGM_Public/pretix_original
Provide a new API for plugins to add HTML to the <head> of the site
This commit is contained in:
18
doc/development/api/general.rst
Normal file
18
doc/development/api/general.rst
Normal file
@@ -0,0 +1,18 @@
|
||||
.. highlight:: python
|
||||
:linenothreshold: 5
|
||||
|
||||
General APIs
|
||||
============
|
||||
|
||||
This page lists some general signals and hooks which do not belong to a
|
||||
specific type of plugin but might come in handy for various plugins.
|
||||
|
||||
HTML head injection
|
||||
-------------------
|
||||
|
||||
These two signals allow you to put code inside the HTML ``<head>`` tag
|
||||
of every page. One signal is for the frontend, one for the backend. You
|
||||
won't get any arguments and can return plain HTML.
|
||||
|
||||
* ``pretix.presale.signals.html_head``
|
||||
* ``pretix.control.signals.html_head``
|
||||
@@ -9,3 +9,4 @@ Contents:
|
||||
plugins
|
||||
restriction
|
||||
payment
|
||||
general
|
||||
|
||||
Reference in New Issue
Block a user