mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-02-16 06:29:36 +00:00
Added hint about HTML block to twig label documentation
This commit is contained in:
parent
5e9f7a11a3
commit
7998cdcd71
1 changed files with 2 additions and 0 deletions
|
|
@ -94,6 +94,8 @@ the label content and you can access almost all data Part-DB offers. The label t
|
|||
where only certain operations are allowed. Only read access to entities is allowed. However, as it circumvents Part-DB normal permission system,
|
||||
the twig mode is only available to users with the "Twig mode" permission.
|
||||
|
||||
It is useful to use the HTML embed feature of the editor, to have a block where you can write the twig code without worrying about the WYSIWYG editor messing with your code.
|
||||
|
||||
The following variables are in injected into Twig and can be accessed using `{% raw %}{{ variable }}{% endraw %}` (
|
||||
or `{% raw %}{{ variable.property }}{% endraw %}`):
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue