I have webform with fields: name, phone and hidden field product.
For hidden field I use token [current-page:title]
Alll pages of pruduct have the button that pops up a webform.
When submitting a form I would expect that [current-page:title] returns title of the current product page I'm currently on. Instead it points to webform title.
Please tell me how to get a real title?
I have a custom block and I want to make it collapsible sideways when it appears on my custom page. I have looked for examples but I found nothing helpful. Could you please guide me?
I created a type of "article" node. A user can flagged the nodes.
On the "full" nodes, I want to display the link for flagged and the total number of flag. With the latest version of the module it is easy because it supports the counter in TWIG.
On the "teaser" of the node, I want to display only the total number of flags. But in the node display mode, there is nothing to select the flag display mode.
How to choose the display mode of the flag type from the display mode of the node ?