Hello,
If a heading level isn't in the range of values supported it won't appear. Please read this page about it:
https://www.phpdocx.com/documentation/cookbook/tables-of-contents
About your second question, you can use a custom paragraph style that includes the numbering you want to use.
Regards.
$myList = array('item 1',
'item 2',
array('subitem 2_1',
'subitem 2_2'),
'item 3',
array('subitem 3_1',
'subitem 3_2',
array('sub_subitem 3_2_1',
'sub_subitem 3_2_1')),
'item 4');
$wf->addList($myList, 4);
Output:
the subitem always restarts the numbering of 1
1. item 1 2. item 2 1. subitem 2_1 2. subitem 2_2 3. item 3 1. subitem 3_1 2. subitem 3_2 1. sub_subitem 3_2_1 2. sub_subitem 3_2_1 4. item 4
Hello,
The easiest approach is using a custom paragraph style with the needed numbering and heading. You can generate the custom style using MS Word and then import it using this method:
Or use a base template with the style. When you add new contents you can apply this style.
Regards.