{% if not editmode %} {% do pimcore_inline_script().appendFile(asset('/bundles/web2printtools/vendor/js/awesomizr.js')) %} {% set inlineScript %} $(document).ready(function() { Awesomizr.createTableOfContents({ /* toc container */ insertiontarget: '#toc-wrapper', insertiontype: 'beforeend', /* levels to look for and link to in toc*/ elements: ['h1','h2'], /* container element for the toc */ container: {tag: 'ul', addClass: 'toc'}, /* container element for one line in the toc */ line: {tag: 'li'}, disabledocumenttitle: true, toctitle: ' ', /* method of getting the text for the toc lines */ text: function (elem) { return this.htmlEncode(elem.textContent); }, htmlEncode: function (str) { const div = document.createElement('div'); div.textContent = str; return div.innerHTML; } }); }); {% endset %} {% do pimcore_inline_script().appendScript(inlineScript) %} {% endif %}

{{ pimcore_input('heading') }}

{{ pimcore_wysiwyg('introtext') }}

{% if editmode %} TABLE OF CONTENTS IS GENERATED ON PDF-EXPORT {% endif %}
{% if not editmode %} {% endif %}