Index

  1. Home
  2. Docs
  3. Index
  4. Data Publisher
  5. Advanced search [Premium]

Advanced search [Premium]

The premium version of the plugin supports a number of advanced search options. To search individual columns of a publication, this feature needs be enabled.

ยป Enable individual column search

Example

The plugin adds searchboxes to the footer by default. This can be changed in the table options advanced column of the Data Publisher. Use option wpda_searchbox to add searchboxes to the header, footer or both:

{
	"wpda_searchbox": "header"
}
{
	"wpda_searchbox": "both"
}

The content of column table options advanced must be valid json! Read more…

Search and list box placeholder prefixes

Placeholders prefixed with Search are added to individual column search and list boxes by default. This prefix can be changed (or removed) using option wpda_search_placeholder_prefix.

Examples

Add Italian translation

{
	"wpda_search_placeholder_prefix": "Ricerca"
}

Remove prefix

{
	"wpda_search_placeholder_prefix": ""
}

Remove prefix and add search icon

{
	"wpda_search_placeholder_prefix": "icon"
}

Removing placeholders

It is also possible to completely remove the placeholders with option wpda_search_placeholder.

Examples

{
	"wpda_search_placeholder": "true"
}
{
	"wpda_search_placeholder": "false"
}
{
	"wpda_search_placeholder": "icon"
}

Combining options

You can also combine wpda_search_placeholder_prefix and wpda_search_placeholder.

{
	"wpda_search_placeholder_prefix": "icon",
	"wpda_search_placeholder": "false"
}

Styling searchboxes

All searchboxes and listboxes contain CSS class wpda_search_textbox, which can be used for styling. Additionally, the column name is added as a CSS class as well, for individual searchbox styling.

Was this article helpful to you? Yes No

Leave a Reply

Your email address will not be published. Required fields are marked *