Skip to content

Commit 498e0e7

Browse files
MyvTsvtrasher
authored andcommitted
Add 4 anonymous hooks doc : add_javascript_anonymous_page, add_javascript_module_anonymous_page, add_css_anonymous_page, add_header_tag_anonymous_page (#160)
* add doc * fix comment
1 parent cbb99c7 commit 498e0e7

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

source/plugins/hooks.rst

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,39 @@ Hooks that cannot be classified in above categories :)
176176

177177
The name of the minified ``plugin.css`` file must be ``plugin.min.css``
178178

179+
``add_javascript_anonymous_page``
180+
Add javascript in **all anonymous** pages headers
181+
182+
.. versionadded:: 10.0.18
183+
184+
Minified javascript files are checked automatically. You will just have to provide a minified file along with the original to get it used!
185+
186+
The name of the minified ``plugin_anonymous.js`` file must be ``plugin_anonymous.min.js``
187+
188+
``add_javascript_module_anonymous_page``
189+
Add javascript module in **all anonymous** pages headers
190+
191+
.. versionadded:: 10.0.18
192+
193+
Minified javascript files are checked automatically. You will just have to provide a minified file along with the original to get it used!
194+
195+
The name of the minified ``mymodule_anonymous.js`` file must be ``mymodule_anonymous.min.js``
196+
197+
198+
``add_css_anonymous_page``
199+
Add CSS stylesheet on **all anonymous** pages headers
200+
201+
.. versionadded:: 10.0.18
202+
203+
Minified CSS files are checked automatically. You will just have to provide a minified file along with the original to get it used!
204+
205+
The name of the minified ``plugin_anonymous.css`` file must be ``plugin_anonymous.min.css``
206+
207+
``add_header_tag_anonymous_page``
208+
Add header tags in **all anonymous** pages headers
209+
210+
.. versionadded:: 10.0.18
211+
179212
``display_central``
180213
Displays something on central page
181214

0 commit comments

Comments
 (0)