<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Components&#x2F;childTemplate content Using API]]></title><description><![CDATA[<p>I want to create document structure that will include:</p>
<ol>
<li>Cover Page</li>
<li>TOC</li>
<li>Page numbers</li>
</ol>
<p>the actual content of the document is a dynamic Template so using  Components/childTemplate looks like the best option.</p>
<p>Another requirement is that the <strong>Component/childTemplate body will be provided from a API call</strong> .<br />
Using the playground example for Components/childTemplate looks like the actual content is store in the DB.<br />
Here are my questions  ?</p>
<ol>
<li>Use Components OR childTemplate ? what will be the best option</li>
<li>Use beforeRender script to update the Component/childTemplate ? for the budy</li>
<li>How to create the Page numbers</li>
<li>How to create the TOC</li>
</ol>
<p>Thank you for the help</p>
]]></description><link>https://forum.jsreport.net/topic/2928/components-childtemplate-content-using-api</link><generator>RSS for Node</generator><lastBuildDate>Sun, 08 Mar 2026 16:56:37 GMT</lastBuildDate><atom:link href="https://forum.jsreport.net/topic/2928.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 13 Sep 2023 09:58:18 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Components&#x2F;childTemplate content Using API on Wed, 13 Sep 2023 09:59:09 GMT]]></title><description><![CDATA[<p>I want to create document structure that will include:</p>
<ol>
<li>Cover Page</li>
<li>TOC</li>
<li>Page numbers</li>
</ol>
<p>the actual content of the document is a dynamic Template so using  Components/childTemplate looks like the best option.</p>
<p>Another requirement is that the <strong>Component/childTemplate body will be provided from a API call</strong> .<br />
Using the playground example for Components/childTemplate looks like the actual content is store in the DB.<br />
Here are my questions  ?</p>
<ol>
<li>Use Components OR childTemplate ? what will be the best option</li>
<li>Use beforeRender script to update the Component/childTemplate ? for the budy</li>
<li>How to create the Page numbers</li>
<li>How to create the TOC</li>
</ol>
<p>Thank you for the help</p>
]]></description><link>https://forum.jsreport.net/post/12634</link><guid isPermaLink="true">https://forum.jsreport.net/post/12634</guid><dc:creator><![CDATA[benben-user]]></dc:creator><pubDate>Wed, 13 Sep 2023 09:59:09 GMT</pubDate></item><item><title><![CDATA[Reply to Components&#x2F;childTemplate content Using API on Invalid Date]]></title><description><![CDATA[<p>Another <em>wild</em> option is using <strong>Docx</strong> as the base template, so Page number + TOC will be cover ,<br />
The content will be html that will be create in a beforeRender script ..</p>
]]></description><link>https://forum.jsreport.net/post/12635</link><guid isPermaLink="true">https://forum.jsreport.net/post/12635</guid><dc:creator><![CDATA[benben-user]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Components&#x2F;childTemplate content Using API on Invalid Date]]></title><description><![CDATA[<p>The documentation mentiones two approaches on how to render ToC with page numbers. Both approaches have linked playground demo<br />
<a href="https://jsreport.net/learn/pdf-utils#toc-table-of-contents" rel="nofollow">https://jsreport.net/learn/pdf-utils#toc-table-of-contents</a></p>
<p>You can also look at the stock showcase demo. That has the same requirements like you.<br />
<a href="https://playground.jsreport.net/w/admin/S3xqZ0Zc" rel="nofollow">https://playground.jsreport.net/w/admin/S3xqZ0Zc</a></p>
<p>If you get to a specific problem, don't hesitate to ask for help.</p>
]]></description><link>https://forum.jsreport.net/post/12640</link><guid isPermaLink="true">https://forum.jsreport.net/post/12640</guid><dc:creator><![CDATA[admin]]></dc:creator><pubDate>Invalid Date</pubDate></item></channel></rss>