Forum


Replies: 1   Views: 1101
How to apply list level override when importing html
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 mcaldas  · 21-07-2021 - 03:42

I'm using the replaceVariableByHTML function in order to insert the following html into a Word template:

<ul>
<li>Countries
<ol style="list-style-type: lower-alpha;">
<li>Argentina</li>
<li>Brasil</li>
<li>Colombia</li>
</ol>
</li>
<li>Cities
<ol style="list-style-type: lower-alpha;">
<li>Alabama</li>
<li>Baltimore</li>
</ol>
</li>
</ul>

The html shows two inner lists (countries and cities) starting at letter 'a' (lower-alpha). But when I see the resulting Word it shows the first OL list (countries) at 'a' and the second OL list (cities) at 'd'.

I was wondering if I should use a specific parameter

I'm using phpDocx 11 Premium and PHP 7.2