How to properly link a Memberstack data table to show filtered notes in collection lists?

Post author
Fil Design

Hi guys,

I've been using MS for a couple of months now and I'm having some trouble setting up data tables, I'm trying to let my users create private notes for each product page, which will be displayed only to the author of the note, I've created my table "private_notes" and added 3 fields: "note", "member_id" and "product_id". I can't get the records to show in my product page, I've this collection list item which has the item "Collection list wrapper" with the drata attributes: data-ms-data: "private_notes" and data-ms-data-filter:"member_id=[MEMBER_ID]" and lastly I added a <p> element inside with the attribute data-ms-content:"note" which should display the actual note, but when I publish the site all I can see is the default <p> element I put in there (lorem ipsum etc), so I'm assuming I haven't linked the table correcty?  Can someone help me with this? Thank yuu so much in advance!

Comments

6 comments

  • Comment author
    Tyler Bell

    right now data tables does not work with data attributes - so in other words, you have to use function calls to get your data and have it be displayed... if that makes sense 🙂

    here's what I recommend....

    1. go to memberstack dashboard and click Chat with Rey (bottom right)

    Say something like this...

    I am using webflow and would like to display my data table data into my webflow site.

    I'm trying to let my users create private notes for each product page, which will be displayed only to the author of the note, I've created my table "private_notes" and added 3 fields: "note", "member_id" and "product_id". I can't get the records to show in my product page, I've this collection list item which has the item "Collection list wrapper"

    Please give me javascript code that is capable of display the authors private notes on the product page.

    0
  • Comment author
    Fil Design

    oh okay thank you so much. I did this before trying to linking the tables and Ray suggested using data attributes. Thank you again!

    0
  • Comment author
    Tyler Bell

    cc Josh Lopez we might need to add more context to rey so she doesn't try to  use data attributes for data tables

    0
  • Comment author
    Fil Design

    Hi Guys,

    I’m loving the new Data Tables implementation in MS!

    I was wondering if there’s a way to add image as fields in a table, I’m pretty sure it’s not supported natively yet, but is there a way to integrate it with, for example, an S2 cloudfare bucket? If so, is there a tutorial on how to set it up?

    Thank you in advance!!

    0
  • Comment author
    A J

    Hey Fil Design,

    Currently, you can probably store the image URLs  in the data tables by setting up a URL type field and further utilize this to embed the image on the site or use it in ways that fits the project.

    Hope this helps.

    Memberstack team might probably come up with a tutorial regarding how to use Data tables with AWS buckets in their channel, so maybe we keep an eye out for that as well.cc: Julian Galluzzo

    0
  • Comment author
    Fil Design

    Thank you! A J

    0

Please sign in to leave a comment.