Table exports #5

Closed
opened 2021-02-08 01:32:27 +00:00 by fabio1299 · 3 comments

Hi,

When we try to export a table defined with the tablepress-pods shortcode we only get the definition of the tabel and not the actual content.

For a table defined as:

ID Name Cottage
{@id} {@title} {@cottage}

The CSV file contains only 2 rows:
ID,Name,Cottage
{@id},{@title},{@cottage}

Instead of actually listing all our cottager and cottages.

he table looks just great as a wordpress page, but we are hoping to be able to generate some simple reports to help use chekc and maintain our users' database.

Many thanks for your help,
Fabio

Hi, When we try to export a table defined with the tablepress-pods shortcode we only get the definition of the tabel and not the actual content. For a table defined as: | ID | Name | Cottage | | -------- | -------- | -------- | | {@id} | {@title} | {@cottage}| The CSV file contains only 2 rows: ID,Name,Cottage {@id},{@title},{@cottage} Instead of actually listing all our cottager and cottages. he table looks just great as a wordpress page, but we are hoping to be able to generate some simple reports to help use chekc and maintain our users' database. Many thanks for your help, Fabio
Owner

Aha, glad to hear it's working on the wordpress page. I have never exported from Tablepress, but I absolutely would like to support it. I will take a look, but in the meantime it would help if you could tell me the exact procedure by which you perform the export? Thanks!

Aha, glad to hear it's working on the wordpress page. I have never exported from Tablepress, but I absolutely would like to support it. I will take a look, but in the meantime it would help if you could tell me the exact procedure by which you perform the export? Thanks!
Owner

My guess is that you are using the Tablepress -> Export a Table menu option in the Dashboard of your Wordpress installation. The difficulty is that this export does not go through shortcodes, and the information of what Pod to use is not stored with the table, but is actually recorded in the shortcode that places your table on your wordpress page. The fact is you could actually use the same Table with different Pods and get different results. Tablepress Pods can absolutely put a hook into the export process, and can look for magic codes in the table entries. The question becomes, how will it know what Pod to use to fill in those magic codes? I will think about this, but I am open to suggestions; also please verify that this is how you are trying to export the tables. Thanks!

My guess is that you are using the Tablepress -> Export a Table menu option in the Dashboard of your Wordpress installation. The difficulty is that this export does not go through shortcodes, and the information of what Pod to use is not stored with the table, but is actually recorded in the shortcode that places your table on your wordpress page. The fact is you could actually use the same Table with different Pods and get different results. Tablepress Pods can absolutely put a hook into the export process, and can look for magic codes in the table entries. The question becomes, how will it know what Pod to use to fill in those magic codes? I will think about this, but I am open to suggestions; also please verify that this is how you are trying to export the tables. Thanks!
glen closed this issue 2021-02-09 01:46:01 +00:00
Owner

OK @fabio1299, I have added an "Export Pods Table" action to the TablePress menu when this plugin is active. Please download and install tablepress-pods-0.3.0.zip. (Install it the same way as you originally did, instructions in the README.) If you encounter difficulties with the new version or if the new action does not fill your needs, please open a fresh issue. Hope this helps!

OK @fabio1299, I have added an "Export Pods Table" action to the TablePress menu when this plugin is active. Please download and install [tablepress-pods-0.3.0.zip](https://code.studioinfinity.org/attachments/e65e4fbb-1a4f-489a-8f26-a8c9109eba67). (Install it the same way as you originally did, instructions in the [README](https://code.studioinfinity.org/glen/tablepress-pods/src/branch/main/README.md).) If you encounter difficulties with the new version or if the new action does not fill your needs, please open a fresh issue. Hope this helps!
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: glen/tablepress-pods#5
No description provided.