Wordpress plugins
[HK] HTML filter and csv-file search

[HK] HTML filter and csv-file search

Version : 1.1
Tested up to : 4.7.6
Number of download : 348
Average rating : 5 / 5 on 1 votes 1 votes, 5 avg.rating

Screenshots

[HK] HTML filter and csv-file search
[HK] HTML filter and csv-file search
[HK] HTML filter and csv-file search
[HK] HTML filter and csv-file search

Two different shortcodes; [hk-csv-search] enables search in csv-file uploaded to the Media-library. Enter the URL in the shortcode to add a searchbox that will find matches in that file with a jquery-ajax-call and presents each row with the format specified. [hk-filtersearch] enabled a filter search box to a page that filter contents instant with jquery. You can set the element to filter within and other settings through the shortcode attributes. [hk-csv-search] Add csv file search functionallity to any post or widget with the shortcode [hk-csv-search src=”http://path_to/content/file.csv”] With thist shortcode a search button will be generated and will by instant-ajax-search search through the csv-file in the src attribute and return the rows found matching the search input. Settings: There are some settings to control the search and output. src Enter the path to the file to search, the file is uploaded through the Media archive as with any other file. Find the URL and enter it in this attribute. format How each line in the output will be formatted. Use {b} to render etc. All { and } will be replaced with < and >. Use {0}, {1} etc. to place the columns where you want in the output line. Default is: {b}{0}{/b}, {1}, {2}{br/} column1 (in bold), column2, column3 end with line-break. searchtext Text that will be shown in search button. Default is in swedish: ‘Sök’. charset Default charset is ‘iso-8859-1’. Can be set to any charset available through this attribute. instantsearch Should instant search be enabled. I.e. dropdown results when entering text. Default is ‘false’. instantformat Format for instant search. Default is ‘{0}’. dataidformat Which column contains ID. Is used when click on dropdown. Default is ‘{0}’. Screenshot 1 shortcode: [hk-csv-search format=”{0} | {1} | {3}{br/}” src=”/files/2016/07/sizedata.csv”/] Which means showing first, second and fourth column from the file with a separator between and line break at the end. [hk-filtersearch] Add filter/search functionallity to any post or widget with the shortcode [hk-filtersearch] With this shortcode a filter input will be generated and will instant filter the content in the page or post. You will be able to select if all page will be filtered or just some of the elements. Settings: There are some settings to control the filter. search_element Select within which html-element the content should be filtered. Should be entered as ‘element.classname’ (i.e. table.content or .content) in any form combining element, id and/or classname. show_header_in_table Set to true if the first row in table is a title and always should be visible. text Replace the standard text placed in front of search box. clear_icon_class Class to use to show ‘clear’-icon. Default is ‘delete-icon’. clear_text Text to show in the clear button, useful instead of icon. Default is empty. Screenshot 2 shortcode: [hk-filtersearch text=”Sök hämtningsdag för din ort” search_element=”table” show_header_in_table=”false”]

Download now