book-export-html.html.twig
Same filename in this branch
- 8.9.x core/profiles/demo_umami/themes/umami/templates/classy/layout/book-export-html.html.twig
- 8.9.x core/themes/claro/templates/classy/layout/book-export-html.html.twig
- 8.9.x core/themes/bartik/templates/classy/layout/book-export-html.html.twig
- 8.9.x core/themes/stable/templates/layout/book-export-html.html.twig
- 8.9.x core/themes/classy/templates/layout/book-export-html.html.twig
- 8.9.x core/modules/book/templates/book-export-html.html.twig
Same filename in other branches
- 9 core/profiles/demo_umami/themes/umami/templates/classy/layout/book-export-html.html.twig
- 9 core/themes/olivero/templates/layout/book-export-html.html.twig
- 9 core/themes/stable9/templates/layout/book-export-html.html.twig
- 9 core/themes/seven/templates/classy/layout/book-export-html.html.twig
- 9 core/themes/claro/templates/classy/layout/book-export-html.html.twig
- 9 core/themes/bartik/templates/classy/layout/book-export-html.html.twig
- 9 core/themes/stable/templates/layout/book-export-html.html.twig
- 9 core/themes/classy/templates/layout/book-export-html.html.twig
- 9 core/modules/book/templates/book-export-html.html.twig
- 10 core/profiles/demo_umami/themes/umami/templates/classy/layout/book-export-html.html.twig
- 10 core/themes/olivero/templates/layout/book-export-html.html.twig
- 10 core/themes/stable9/templates/layout/book-export-html.html.twig
- 10 core/themes/claro/templates/classy/layout/book-export-html.html.twig
- 10 core/modules/book/templates/book-export-html.html.twig
- 11.x core/profiles/demo_umami/themes/umami/templates/classy/layout/book-export-html.html.twig
- 11.x core/themes/olivero/templates/layout/book-export-html.html.twig
- 11.x core/themes/stable9/templates/layout/book-export-html.html.twig
- 11.x core/themes/claro/templates/classy/layout/book-export-html.html.twig
- 11.x core/modules/book/templates/book-export-html.html.twig
Theme override for printed version of book outline.
Available variables:
- title: Top level node title.
- head: Header tags.
- language: Language object.
- language_rtl: A flag indicating whether the current display language is a right to left language.
- base_url: URL to the home page.
- contents: Nodes within the current outline rendered through book-node-export-html.html.twig.
See also
template_preprocess_book_export_html()
1 theme call to book-export-html.html.twig
- BookExport::bookExportHtml in core/
modules/ book/ src/ BookExport.php - Generates HTML for export when invoked by book_export().
File
-
core/
themes/ seven/ templates/ classy/ layout/ book-export-html.html.twig
View source
- {#
- /**
- * @file
- * Theme override for printed version of book outline.
- *
- * Available variables:
- * - title: Top level node title.
- * - head: Header tags.
- * - language: Language object.
- * - language_rtl: A flag indicating whether the current display language is a
- * right to left language.
- * - base_url: URL to the home page.
- * - contents: Nodes within the current outline rendered through
- * book-node-export-html.html.twig.
- *
- * @see template_preprocess_book_export_html()
- */
- #}
- <!DOCTYPE html>
- <html{{ html_attributes }}>
- <head>
- <title>{{ title }}</title>
- {{ page.head }}
- <base href="{{ base_url }}" />
- <link type="text/css" rel="stylesheet" href="misc/print.css" />
- </head>
- <body>
- {#
- The given node is embedded to its absolute depth in a top level section.
- For example, a child node with depth 2 in the hierarchy is contained in
- (otherwise empty) div elements corresponding to depth 0 and depth 1. This
- is intended to support WYSIWYG output - e.g., level 3 sections always look
- like level 3 sections, no matter their depth relative to the node selected
- to be exported as printer-friendly HTML.
- #}
-
- {% for i in 1..depth-1 if depth > 1 %}
- <div class="section-{{ i }}">
- {% endfor %}
- {{ contents }}
- {% for i in 1..depth-1 if depth > 1 %}
- </div>
- {% endfor %}
- </body>
- </html>
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.