giterlizzi / dokuwiki-plugin-datatables

Add DataTables support to DokuWiki
GNU General Public License v2.0
10 stars 10 forks source link

Hidden search/filter values is it even possible? #39

Open Hakker opened 6 years ago

Hakker commented 6 years ago

Maybe I'm doing something wrong but I somehow can't get a table running with hidden search fields

Just an example

<datatable paging-type="full_numbers" page-length="50" responsive="true" fixed-columns="true" auto-width="false" searching="true">

^ Name              ^ Updated     ^ Genre                    ^ rate |
| [[Title 1:start]] | 2016-10-22  | filter='{"RPG":Action"}' | {(rater>id=1|name=Title 1|type=rate|trace=ip|headline=off)}|
| [[Title 2:start]] | 2016-12-22  | filter='{"FPS":RPG"}'    | {(rater>id=2|name=Title 2|type=rate|trace=ip|headline=off)}|
</datatable>

the trouble is the text just is visible in the table. Basically if possible genre should be invisible.

MvErven commented 5 years ago

Hidden search fields can be used... Just use the hidden tag and /hidden in one of the colums.

^ Name ^ Updated ^ Genre
| [[Title 1:start]] | 2016-10-22 | < hidden > RPG Action < / hidden > | | [[Title 2:start]] | 2016-12-22 | < hidden > FPS RPG < / hidden > |

Hakker commented 5 years ago

That doesn't seem to work either with or without the hidden plugin. afaik the hidden tag isn't a part of datatables for dokuwiki. It just displays <.hidden> text <./hidden>

MvErven commented 5 years ago

It's not a hidden plugin. This is part of the bootstrap wrapper plugin and boots wrapper theme. It works for me. (same author)

Have a look at my txt. Here we can also search on import time or contact. Hope this helps.

Klantentabel - kopie.txt