• Resolved lpryor

    (@lpryor)


    Is there a way of displaying a single record on a page? I’d like to be able to have a url like …/single-record/?wpda_search_column_my_id=1, where the single record page would show all the fields of the specified record. Formatting isn’t really important. Something like what you get when you click on “view” in the data explorer would be a good start.

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

    (@peterschulznl)

    Hi @lpryor,

    From the Data Explorer you can use these arguments:
    /wp-admin/admin.php?page=wpda&table_name=your-table&action=view&id=1

    For a Data Project just replace the page arguments with the project page argument:
    wpda_<project_id>_<page_id>

    For shortcode wpdadiehard add these arguments to your url:
    ?action=view&id=7

    If you are using the Data Publisher you can use argument wpda_search_column_my_id from your example. To remove all the table related elements (search box, pagination, etc) enter the following JSON in table options advanced:
    { "dom": "Bfrtip" }

    Does this help?

    Thanks,
    Peter

    Thread Starter lpryor

    (@lpryor)

    Thanks, @peterschulznl – that’s great. I’m sure I’ll be able to get something that’ll work from that!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Display single record in page’ is closed to new replies.