Loading...
 
Skip to main content

History: Maketoc

Source of version: 15 (current)

Copy to clipboard
^ maketoc is  __very__ buggy, deprecated, and a ((Endangered features|candidate to be removed between 21 and 22 at the latest)).  See ((TOC revamp)) and please use ((doc:Auto TOC)) instead. {sign user="marclaporte" datetime="2019-07-20T06:48:40+00:00"} ^


* By default, title should be empty instead of us having to do ~np~{maketoc title=""}~/np~
* A syntax should exist to suppress auto-toc in some pages
* maketoc should become a plugin (wikiplugin_maketoc.php)
** Why? {sign user="Chealer9" datetime="2018-06-08T18:36:48+00:00"}
*** It's non-standard code, even if it looks like a plugin {sign user="marclaporte" datetime="2019-09-04T22:09:08+00:00"}
* Maketoc should become client-side (in JavaScript and use the content of the current page) so a plan should be made to re-implement all current functionality. Ideally pick a library
** With [https://github.com/gfranko/jquery.tocify.js|jquery.tocify.js]
** http://css-tricks.com/automatic-table-of-contents/
** http://www.jankoatwarpspeed.com/automatically-generate-table-of-contents-using-jquery/
** http://projects.jga.me/toc/
** http://www.jquery4u.com/plugins/5-jquery-table-content-toc-plugins/
** http://fuelyourcoding.com/scripts/toc/
** http://www.sitepoint.com/5-jquery-table-content-toc-plugins/

! maketoc wishes
{LIST()}
    {filter type="trackeritem"}
    {filter field="tracker_id" exact="5"}
    {filter field="tracker_status" content="o"}
    {filter field="tracker_field_subject" content="maketoc"}
    {sort mode="modification_date_ndesc"}
    {pagination max="25"}
    {OUTPUT(template="table" pagination="y")}
        {column label="Subject" translatelabel="y" field="subject" sort="tracker_field_subject" mode="raw"}
        {column sort="creation_date" label="Created" field="created"}
        {column sort="modification_date" label="Last Modif" field="modified"}
    {OUTPUT}
    {FORMAT(name="subject")}{display name="tracker_field_subject" format="objectlink"}{FORMAT}
    {FORMAT(name="created")}{display name=creation_date dateFormat="%d %b %y %H:%M"}{FORMAT}
    {FORMAT(name="modified")}{display name=modification_date dateFormat="%d %b %y %H:%M"}{FORMAT}
    {ALTERNATE()}^{TR()}No results{TR}^{ALTERNATE}
{LIST}
Show PHP error messages