Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
First of all: @jrockowitz Many thanks for creating the [experimental] webform_share submodule.
Many things are already working very well. But when I copy html--webform-share.html.twig to a custom active theme the {{ page }}
is not rendered.
Comment | File | Size | Author |
---|---|---|---|
#2 | 3150671-2.patch | 1.3 KB | jrockowitz |
Comments
Comment #2
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedThe issue seems to be that
template_preprocess_html()
is being called twice. When using thehtml--webform-share.html.twig
andpage--webform-share.html.twig
template provided by the webform_share.module, I had to call thetemplate_preprocess_* for each template.
Please try the attached patch.
BTW, I think you also need to have a copy of
html.html.twig
in your custom theme for the template suggestion to work as expected.Comment #3
C-Logemann@jrockowitz Many thanks for your very fast work on this. I will test as soon as possible. The "html.html.twig" was already copied in my test system custom theme. (edit changed "is ..." to "was copied")
Comment #4
C-LogemannThe patch is working fine.
Comment #6
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commented