xdreamer / searchtablejs

Enable table filtering using a Javascript plugin for DokuWiki (similar to sortablejs plugin)
http://www.rhenjes.de
4 stars 5 forks source link

State of progress with ToDo List? (as shown on your Plugin page) #19

Open Chris75forumname opened 3 years ago

Chris75forumname commented 3 years ago

Hi, I am looking for a plugin with Excel-like filter options for Tables just like the one mentioned in your Plugin Page Todo List!

I checked out this demo page and I would opt for the dropdown menus with predefined filter entries above each collumn header. There is actually a more recent website about this open source project by Max Guglielmi:

http://tablefilter.free.fr/

A working code example by the same author, which is exactly what I would like to use, is shown here:

https://codepen.io/koalyptus/pen/wKBOLp

Unfortunately, approximately 10 available table related Plugins in Dokuwiki do not offer this functionality. So, your Todo List Entry is still urgent today! Is there any current work in progress? I am asking before I will be starting to dig into this myself. But, since I am not a professional programmer, all I will be able to pull off is a hack! Sorry for that! Yours, Chris

Chris75forumname commented 3 years ago

a copy of: https://forum.dokuwiki.org/d/4975-feature-request-table-with-filter-capabilities

Hi, tablefilter actually integrates really well with dokuwiki out of the box, I can't see why this wasn't done yet. As I said, I am not a programmer, but I found my efforts worthwhile! I just copied Version 2.5.1 from:

http://tablefilter.free.fr/zip.php?f=TableFilter_EN.zip

which is free. There is an extension to this freeware with a price tag on it, as shown here:

https://codecanyon.net/item/ezedittable-enhance-html-tables/2425123?ref=koalyptus

However, since the edittable plugin does the same job in dokuwiki, we don't need to pay for that!

I extracted the zip file to /lib/plugins/tablefilter. The monetized module tf_ezEditTable has to be removed from the folder, otherwise it produces error messages. I also added some free and useful extensions from the download section http://tablefilter.free.fr/dwn.php, which control collumn visibility, row visibility and sortable table. I placed an HTML table into /conf/pagefooter.html, which is the standard html hook into dokuwiki.

It would be even more handy to have a pagemiddle.html hook for this case as requested previously by @acraig here:

https://forum.dokuwiki.org/d/12149-include-fixed-html-e-g-pagemiddle-html

There were some minor fixes to do: the configuration code for the tablefilter plugin (as described on the homepage) and some css in the pagefooter.html, some jQuery to control the display of multiple tables on multiple pages in /conf/userscipt.js, and so on.

In summary, I have integrated a working example of tablefilter, without much difficulty, which looks and works great so far and may serve my users well. So what is next? It is further necessary to translate the HTML code of the table from tablefilter back and forth into dokuwiki markup code of the table for inline editing via edittable plugin in a real dokuwiki page.

It would be a small step for a programmer, but I am sure it would be a big leap for the dokuwiki community!

Maybe, I will try to hack this myself, someday! :-)

Cheers!