Forum


Replies: 8   Views: 3424
Update document cross-references
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 arnaudbouchard  · 01-08-2018 - 04:40

I'll rephrase my question. Imagine I have a doc looking like this:

My cross-reference to "Third sub-title" is: 1.c

1.      First title
    a.  First sub-title
~BLOCK_testBlock~
    b.  Second sub-title
~BLOCK_testBlock~
    c.  Third sub-title
2.      Second title
3.      Third title

Now, let's imagine I remove 1.b programmaticaly.

With DOCXPath as you suggest, how can I change my cross-reference from 1.c to 1.b? I managed to do it if the cross reference text is set to "Paragraph text" via the getWordContents() function. But getting the list style / numbering seems difficult.

Thanks,