Okay
  Public Ticket #946611
Google Spreadsheets
Closed

Comments

  •  2
    Collin started the conversation

    I am trying to use the Google Spreadsheets integration with this plugin.

    My spreadsheet: https://docs.google.com/spreadsheets/d/1Xb1y9OZ71zjkq5MiBmyCHsvFYdUfVRx6PAnlS93lqd4/pubhtml

    My Current Site: https://beta.filterlists.com/regional/

    As you will notice, I have a lot of empty rows showing up in wpDataTables that are not in my Google Sheet.

    Also, a few rows in my Google Sheet are not being displayed via the plugin (rows 6,8,9,10).

    Lastly, this table is not responsive (collapsing to accordion-style expansion on narrow screens) like tables that are created manually in the plugin such as this one (https://beta.filterlists.com/). I verified that the checkbox for making it "Responsive" is checked.

    I do see the below error message in my PHP error log which might be helpful:

    [ www: PHP Warning: array_combine(): Both parameters should have an equal number of elements in /var/www/filterlists2/wp-content/plugins/wpdatatables/source/class.wdttools.php on line 100]

    Can you help me debug these issues?

    Thanks!

  •  2
    Collin replied

    UPDATE: I just discovered this thread and doing this find and replace solved my first two issues. The third issue regarding the responsiveness of the Google Sheet table is still present, though. Please let me know if you have any ideas on that. Thanks!

  • [deleted] replied

    Hi Collinbarrett,

    Congratulation on finding solution by yourself. If you need to have line breaks you can use standard HTML <br> tags for this.

    You have setup column width which prevents table from shrink any further. If you remove that it will be full responsive  


  •  2
    Collin replied

    Thanks, I figured it out. This ticket can be closed. Thanks.