Forum


Replies: 2   Views: 1578
Cross reference with no context
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  · 01-07-2020 - 07:41

Hello,

phpdocx 10 added the modifiers option to addCrossReference (https://www.phpdocx.com/api-documentation/word-content/add-cross-reference-Word-document-with-PHP), so you can set a custom modifier when adding a cross-reference,  \h is the default one, but you can use others such as \w \h, \r \h, \n \h... (unfortunately there's no list with all available options)

We recommend you to generate the cross-reference using MS Word to get the exact modifier you want to use (for example extracting the DOCX and opening word/document.xml). If you open a support ticket (https://www.phpdocx.com/support) with a DOCX sample of the output you want to get, and the dev team will generate a custom script.

Regards.