Interacting with another plugin
-
Hi
I’m an author of a plugin called CSV to HTML which creates a html table from any csv-files dynamically with a single shortcode. No need for uploading of csv-file, just fetch directly from webserver of external site. I say this because of standing of the request…
I got a request from a customer to use my plugin’s shortcode together with yours: (The customer has PRO-version of your plugin)
[csvtohtml_create create html_id="csvtohtmlstyle1" source_type="guess" source_files="csvfile" pagination="yes" debug_mode="no" pagination_text_start="Back to Start " pagination_text_prev=" Previous Page " pagination_text_next=" Next {{mpg_town}} Page " pagination_text_last=" Last Page" pagination_rows=30 pagination_links_max="10" search_functionality="yes" searchbutton_text="Search now " resetbutton_text="Reset" search_requiredchars="2" search_requiredchars_message = "Enter a minimum of 2 characters when doing a search" notfound_message = "No results found. Please try again." searchinput_placeholder="Type here to search..." filter_col="3" filter_data="{{mpg_town}}" ]
but {{mpg_town}} is not adjusted to the actual town from csv-file but stays at {{mpg_town}. The shortcode works if it’s just hardcoded:
Example:
[csvtohtml_create create html_id="csvtohtmlstyle1" source_type="guess" source_files=https://broadbandinternetspeedchecker.net/wp-content/uploads/Speedtests_v5.csv pagination="yes" debug_mode="no" pagination_text_start="Back to Start " pagination_text_prev=" Previous Page " pagination_text_next=" Next {{mpg_town}} Page " pagination_text_last=" Last Page" pagination_rows=30 pagination_links_max="10" search_functionality="yes" searchbutton_text="Search now " resetbutton_text="Reset" search_requiredchars="2" search_requiredchars_message = "Enter a minimum of 2 characters when doing a search" notfound_message = "No results found. Please try again." searchinput_placeholder="Type here to search..." filter_col="3" filter_data="Luton" ]
The issue is probably that my plugin is not loaded before yours and therefore you don’t know what value to fetch. Is there any way to solve this issue? Is it something in my plugin I can do to make it easier?
- The topic ‘Interacting with another plugin’ is closed to new replies.