HTML Extended: <phpdocx_crossreference> tag

<phpdocx_crossreference> tag

PREMIUM TRIAL / ADVANCED

Inserts a cross-reference.

HTML Extended (Premium licenses)
Attribute Description
data-text Text of the reference
data-type The bookmark type. Possible values are 'bookmark' and 'heading'.
data-modifiers Custom modifiers: \r \h, \n \h....
data-referenceName The name of the element to be referred.
data-referenceTo Content to display when the field is updated PAGEREF (default, page number), REF (bookmark text content), ABOVE_BELOW (above/below text).

Other styles from phpdocx_text can also be used.

Code samples

Example #1

The resulting Word document looks like: