Forums

Executing block instructions in a form (Exécution des instructions d'un bloc dans un formulaire)

jmgroud 15 Apr, 2020
English
Hello
I created a "Views block" called "Block Test" (Block ID = "block-test"), containing a simple HTML zone displaying "Hello".
In a form, I would like to display the content of this block in the "Views" section ...

If I create a single "Stored Block" type field with reference to the "Block Test" block, everything works, I have the display of "Hello" in the form.
If I create a single HTML field containing {block: block-test}, I have no display.
If I create the 2 previous fields in the same form at the same time, I have the 2 displays, so the HTML zone works correctly.

Why the simple call {block: block-test} does not work by itself?
Thanks in advance for your help and explanations

Français
Bonjour
J'ai créé un "Views block" nommé "Block Test" (Block ID = "block-test"), contenant une simplezone HTML affichant "Bonjour".
Dans un formulaire, j'aimerai afficher le contenu de ce block dans la partie "Views"...

Si je créé un seul champs de type "Stored Block" en faisant référence au block "Block Test", tout fonctionne, j'ai bien l'affichage de "Bonjour" dans le formulaire.
Si je créé un seul champ HTML contenant {block:block-test}, je n'ai aucun affichage.
Si je créé les 2 champs précédents dans le même formulaire en même temps, j'ai les 2 affichages, donc la zone HTML fonctionne correctement.

Pourquoi l'appel simple {block:block-test} ne fonctionne pas tout seul ?
Merci d'avance pour votre aide et explications
This topic is locked and no more replies can be posted.