On the cover page I have to display the total number of pages.
I have a complicated table in the cover page topic which I put in the body frame of the page, not in the page layout. I did this because it is so much easier to construct tables in a topic page versus a frame in a page layout.
The table looks like this: The table in the cover page contains the System.PageCount variable. In the PDF output, this variable always displays as 1.
Here is the code:
Code: Select all
<td class="TableStyle-CoverPageTitleBlock_Project-BodyE-Column1-Body1">
<p class="TitleBlock6pt">TOTAL PGS</p>
<p class="TitleBlock7pt"><MadCap:variable name="System.PageCount" class="TitleBlock7pt" />
</p>
</td>
Is it correct that system variables work only in page layouts, not in topics?