Forum


Replies: 2   Views: 1606
Ol and customliststyles are not thoroughly supported
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 admin  · 06-06-2020 - 09:46

Hello,

Please do this minor change:

1. Edit CreateDocx.php (Classes/Phpdocx/Create folder in the namespaces package).

2. Go to embedHTML method.

3. Replace the following line:

if (isset($value['attributes'])) {

by:

if (isset($value['attributes']) && $newNumberingDOM) {

And try again. A very similar change will be included in the next release of phpdocx to allows adding customListStyles with ol tags.

Regards.