Okay
  Public Ticket #1623731
Using data in tables
Closed

Comments

  • Francisco Dávila started the conversation

    Hi. I would like to know the following: Once my table is created and populated or after that filtered, is there any (easy, or not) way to access the data inside the table to add it to any part of my website?

    e.g.: A simple book database with name, author, subject and cover. Now I want to use a CSS Card to display the data in any record I decide in a more "beautiful" way. Is it feasable?

    Thanks for your help

  • [deleted] replied

    Hi Francisco Dávila,
    Thank you for the inquiry.

    There is a way to access the data using https://datatables.net/ API. We are using this library as main table library and datatables has API methods that allows you to do different things with the table using JavaScript. 

    "Now I want to use a CSS Card to display the data in any record I decide in a more "beautiful" way. Is it feasable?"

    - Something like that probably can't be achieved with built-in features and would require some custom coding.

    You can try our sandbox site: Front-end & Back-end - you can find a fully functional version there to try out all plugin features.

  • Francisco Dávila replied

    Well. I think I can manage with custom coding. If you say I can manipulate the tables with JavaScript I imagine I can access, for example, the results of a filter, and one by one (using a loop) get every field on overy record to populate my css card. And that last part is the tricky one.

    Thanks

  • [deleted] replied

    Hi Francisco Dávila,

    If you decide to buy the plugin, please open a support ticket in wpDataTables category, and we will send you how you can access datatables API for wpDataTable and from there you can use various datatables features.

  • Francisco Dávila replied

    OK. Thanks.