Forum


Replies: 3   Views: 1892
Issue with data-text in crossreferences
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 dev@ams  · 15-01-2020 - 09:37

Hi,

I have a problem when I use cross-references with HTML extended. This is what I use: 

<p><phpdocx_bookmark data-name="bookmarkname" data-type="start" />bookmark<phpdocx_bookmark data-name="bookmarkname" data-type="end" /></p>
<p>Â </p>
<p>Should be crossreference:</p>
<p>Â </p>
<p><phpdocx_crossreference data-text="Link to bookmark" data-type="bookmark" data-referenceName="bookmarkname" /></p>

In my document, the data-text is however not visible. Instead, I see number '1' for the cross reference. Am I doing something wrong or is this an issue with phpdocx?