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?
To help developers solve the bug, we kindly request that you demonstrate your bug on a show2.tiki.org instance. To start, simply select a version and click on "Create show2.tiki.org instance". Once the instance is ready (in a minute or two), as indicated in the status window below, you can then access that instance, login (the initial admin username/password is "admin") and configure the Tiki to demonstrate your bug. Priority will be given to bugs that have been demonstrated on show2.tiki.org.
filename | created | hits | comment | version | filetype | ||
---|---|---|---|---|---|---|---|
No attachments for this item |