-3

I install and activate entity print on my Drupal 8 website. I create a theme entity-print--node--produit.html.twig in my subtheme/template/node.

    {% set node = content[0].0["#node"] %}
<!doctype html>
<html lang="fr">
  <head>
    <meta charset="utf-8">
    <title>{{ title }}</title>
    {{ entity_print_css }}
      <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">

  </head>
  <body>
    <header>
{#      {{dd(node.field_produit_bandeau | file_url)}}#}
        <div class="bg-page-histoire" style="background: url('{{  node.field_produit_bandeau|file_url }}');background-repeat: no-repeat;background-size: cover;background-position: center;position: relative;height: 20vh;">
        </div> 
    </header>
    <section>
    </section>
  </body>
</html>

But when I theming this template with css or boostrap i have error

css error : "Error generating document: Failed to generate PDF: 'background_size' is not a recognized CSS property"

bootstrap : a big red warning "danger:not(:disabled):not(.disabled).active:focus' is not valid, The CSS selector '.btn-danger:not(:disabled):not(.disabled):active:focus' is not valid...'

I want theming my PDF product but i can't can anyone have an idea ?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.