• Resolved randirainbow

    (@randirainbow)


    Hi Peter,

    I’m trying to display about 10 columns of data and have questions on how to overcome the following:

    1) The data is wider than the page. Is there a way to shrink the text size on the displayed data?

    2) When setting responsive settings, I can only have a single field display with all the rest in the expanded view. How can I have the collapsed view have more than one column in the display.

    Thanks,
    Randi

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Passionate Programmer Peter

    (@peterschulznl)

    Hi Randy,

    1) The plugin uses jQuery DataTables. You should be able to (re)style the tables when you follow the examples on the jQuery DataTables website. In general the following page has been helpful to me more than once: https://datatables.net/examples/index

    For your text size shrinking problem specifically, the might want to check out the following page as well: https://stackoverflow.com/questions/33454016/change-font-family-in-datatable

    2) Do you mean this: https://datatables.net/extensions/responsive/examples/column-control/colreorder.html?

    The plugin currently supports one column for responsive tables only. Sorry! I will leave this topic open and see what I can do.

    Not sure if this is an option for you, but for now you could create a view and concatenate some columns to be displayed as one column and use that column in the main table. Would that help (for now)?

    Best regards,
    Peter

    Plugin Author Passionate Programmer Peter

    (@peterschulznl)

    Hi Randy,

    I have to recall my previous answer! You can display multiple fields in responsive tables. Please use the following shortcode example:

    [wpdataaccess table=”yourtable” columns=”col1,col2,col3,coln” responsive=”yes” responsive_cols=”2″ responsive_type=”modal” responsive_icon=”yes”]

    You can also use responsive_type “expanded” and “collapsed”. Just try to see what you like most.

    I hope this helps! The next version of the plugin contains a Data Publisher which will make it much easier to work with shortcodes. ??

    Best regards,
    Peter

    Thread Starter randirainbow

    (@randirainbow)

    Thank you, Peter! That was just what I needed.

    Warmly,
    Randi

    Dear Randy,
    I have the same issue
    I have a simple table with 2 columns: Engels, Nederlands
    I can view it but it does not fit in the page so I want to make it responsive.
    I use this code:
    [wpdataaccess table=”BahaiTeksten” columns=”Engels,Nederlands” responsive=”yes” responsive_cols=”2″ responsive_type=”modal” responsive_icon=”yes”]

    But I get the ERROR: Column ”Engels not found
    While Engels is really the name of one of my columns in the Designer

    By the way, when saving a page with WP Data Access shortcodes, I always get an error massage that the page could not be saved (“Bijwerken mislukt”). But somehow the page is saved and I can see results…

    Thanks

    Plugin Author Passionate Programmer Peter

    (@peterschulznl)

    Hi vahidn95,

    You need to grant access to table BahaiTeksten. You can do that from the menu:
    Manage Plugin > Front-end Settings.

    The error you get when you save a page is gone in the next release which I hope to deploy in the coming days. The new release contains a new tool – the Data Publisher – as well which makes it much easier to add a table to your website. With the Data Publisher you can create a shortcode with just a few mouse clicks.

    Best regards,
    Peter

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Data display questions’ is closed to new replies.