Import/Export Data as CSV
-
Hi,
Great plugin! I thinking of buying the Data Editor Extension.
One question:
Is the feature “Import/Export Data as CSV” available on a front-end page or only in the back-end ?Thanks.
-
Only on an administration page.
Thanks Michael.
Any plan of making it available as a shortcode on any page like the edit feature?
Could it be put on a future features list?Any code I could used in the plugin “Shortcodes Actions and Filters” that would do the job?
The reason I am asking is because I would like to have a super-user upload a table every month but I do not want to give him access to the administration pages.
No plans currently to make that available via a shortcode.
I suppose you could write a shortcode to display the form that appear on the administration page onto a different page. The plugin file CF7DBPlugin.php has a function showShortImportCsvPage(). You could create a shortcode that instantiates this class and calls that function. I haven’t actually tried it that way.
Submitting the form won’t work unless you have the CFDB Editor installed (for the back-end code to actually to do the import).
The user submitting the form would have to be at a level that has CFDB permission “Can Edit/Delete Submission data”. And you can set the permission to view the administration pages to “Administrator” so that this user could not see it.
Thanks, Michael.
Yes, I did buy and install CFDB Editor.I created a shortcode with “Shortcodes Actions and Filters”.
The page that include the shortcode does load but the content is empty (no error reported).My shortcode code is:
include(“wp-content/plugins/contact-form-7-to-database-extension/CF7DBplugin.php”);
showShortImportCsvPage;I am not an expert in PHP but I did try the following variations without success:
require_once(ABSPATH . ‘wp-content/plugins/contact-form-7-to-database-extension/CF7DBplugin.php’);
require(“wp-content/plugins/contact-form-7-to-database-extension/CF7DBplugin.php”);
and
showShortImportCsvPage();What wrong with my code? Please help.
include('wp-content/plugins/contact-form-7-to-database-extension/CF7DBPlugin.php'); $plugin = new CF7DBPlugin(); $plugin->showShortImportCsvPage();Hi Michael,
Sorry took me sometime to test it, got busy with something else…I try :
include(“wp-content/plugins/contact-form-7-to-database-extension/CF7DBPlugin.php”);
$plugin = new CF7DBPlugin();
$plugin->showShortImportCsvPage();
showShortImportCsvPage();This does not display anything of the page were I put my shortcode
Also, while login as administrator, the admin bar in not shown on that page, WeirdWhat should I change?
Do I have to add the line “showShortImportCsvPage();”? With or without it I get same result.BTW, “Shortcodes Actions and Filters” would not accept the ‘ in
include(‘wp-content/plugins/contact-form-7-to-database-extension/CF7DBPlugin.php’);This worked for me:
include_once(ABSPATH . 'wp-content/plugins/contact-form-7-to-database-extension/CF7DBPlugin.php'); $plugin = new CF7DBPlugin(); $plugin->showShortImportCsvPage();GREAT! That is working!
Thanks a lot, Micheal.
The topic ‘Import/Export Data as CSV’ is closed to new replies.