dokuwiki-plugin-struct
dokuwiki-plugin-struct copied to clipboard
Dropdown option for dynamic filter
Is there a possibility to use dropdown selection for dynamic filters? I did not find any information about such a functionality in the documentation. It could be really useful, especialy because the struct plugin has a central way to ensure the structured data was consistent over multiple pages. The dropdown option would make it easier to select the right search term and/or to validation for.
Comparable to the user interface option of the strata plugin.
Strata Example:
ui {
Person {
filter: select
}
Address {
filter: text
Thank you for opening this issue. CosmoCode is a software company in Berlin providing services for wiki, app and web development. As such we can't guarantee quick responses for issues opened on our Open Source projects. If you require certain features or bugs fixed, you can always hire us. Feel free to contact us at [email protected] for an offer.
I assume this is about the dynfilters setting. Judging from the strata example, I assume you would want to set the kind of filter per column. Eg. let one column be filtered by text input while another uses a Dropdown?
I could imagine extending the dynfilters setting to accept a list of arguments. Like so:
---- struct table ----
schema: example
cols: a, b, c, d
dynfilters: text, select, select, none
----
@BongoKing does that match what you had in mind?
Yes that is exactly what I had in mind! Thanks a lot!
I'd very much support such an option. That is exactly what I am looking for and trying to achieve since a few days. I would even suggest, that the dynfilter takes the same format as the field type by default. E.g. a multi-select dropdown would also show as a multi-select dropdown in the filter ecc.. This has probably to be relaxed a little, e.g. by using "text" for longtext, email wiki etc.
Is the implementation of this feature in the roadmap or not (yet)?