In 18.x (and probably earlier) you can print the table of contents on the fly in the pdf produced by mpdf (at pdf generation time), regardless of using hardcoded maketoc calls, o hardcoded title calls with wiki argument variable { { page } }
(no space intended between angle brackets).
This feature is nice, but if would deserve another minor level of integration, for those cases in which:
Potential solution to both issues: (2 birdies in one shot)
Allow replacing hardcoded call to maketoc in page with the one produced by mpdf
How? Brainstorm mode on:
inpdf
in maketoc plugin, with several values:
{maketoc inpdf=replace}
Replace that maketoc call in the wiki textarea with the output of the table of contents from mpdf
{maketoc inpdf=keep}
keep same behavior as nowadays, for those edge cases in which user has custom maketoc for partial sections of the page (or whatever), which want printed also besides the full table of contents at the beginning, etc.
{maketoc inpdf=ignore}
ignore the maketoc call when creating the pdf, so that the only maketoc is the one produced by mpdf at the beginning (for cases with wiki page created by Tiki itself, etc, so that placement of the maketoc from mpdf is the expected one, etc)
Opinions?
filename | created | hits | comment | version | filetype | ||
---|---|---|---|---|---|---|---|
No attachments for this item |