In a previous tutorial we had described the process of reading a published Google Document/Spreadsheet with Tabulizer and turning it into a Joomla or Wordpress table.
Basically what we did is that we published the document as CSV file and linked the CSV file via a data source to the resulting HTML table. As Google has removed the option to publish a spreadsheet as CSV, even though there is a workaround that is mentioned at the end of previous tutorial , in this tutorial we will describe the process of reading the published documents as HTML tables.
We create the document.
After we have added the data, we publish the document.
Note that regardless of the Sharing settings, once the document is published it's viewable by anyone who knows the published link. This is because the published document is considered a separate document from the source and this is why it is important to keep checked the "Automatically republished when changes re made" option.
Check that the published URL is accessible. It should be normal web page where the data appear in an single HTML table (the first and only table of the page - we will use this information later on when we specify which table we want to read from the web page).
Create the ruleset that will be used by the template. For those of you that are not familiar with the Tabulizer, a ruleset is something like a table template or a table preset, but it's more than that. Apart from the visual aspects of the table (colors, fonts, etc) you can also do data transformations and add dynamic features such as sorting, filtering and pagination.
We create the data source we the following settings:
If the number of rows is larger than a certain number, which depends on the size of each row, then it's recommended to use the "server side processing" option that will load only the portion of the table that it's really needed, instead of the whole table using AJAX calls.
- The associated ruleset should have a table pagination ruleset
- The data source cache must be enabled
OK, below is the resulting table for the published Google document published here:
|Loading data from server ...|
And here is the related video tutorial: