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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

C_Logemann created an issue. See original summary.

jrockowitz’s picture

Status: Active » Needs review
FileSize
1.3 KB

The issue seems to be that template_preprocess_html() is being called twice. When using the html--webform-share.html.twig and page--webform-share.html.twig template provided by the webform_share.module, I had to call the
template_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.

C-Logemann’s picture

Assigned: Unassigned » 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")

C-Logemann’s picture

Assigned: C-Logemann » Unassigned
Status: Needs review » Reviewed & tested by the community

The patch is working fine.

  • jrockowitz authored e314311 on 8.x-5.x
    Issue #3150671 by jrockowitz: html--webform-share.html.twig not working...
jrockowitz’s picture

Status: Reviewed & tested by the community » Fixed

  • jrockowitz authored e314311 on 6.x
    Issue #3150671 by jrockowitz: html--webform-share.html.twig not working...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.