Replies: 13   Views: 854
Add section and change page orientation with htmlextended
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by gmakstutis  · 29-05-2019 - 22:57

I am very happy to inform you that it works!

You can create the necessary WordML fragments in a Drupal theme_preprocess_node function, in order to define a variable that can be added to your template as a {{ twig }} variable. I did, as you suggested, add 'raw' to the twig variable ( {{ twig|raw }} to ensure that the result of the WordML encoding and serializing did not get 'escaped'.

Thank you, once again, for your assistance.