How to create a user-item likes system that exports to Airtable and shows saved content on dashboards? Answered

Post author
Sidney Esiri

please i need help with this video #20 - Save & Unsave CMS Items v0.3i'm not sure where to put the code, the classes are a bit confusing
i would have loved to see the structure of the page especially how you set up the buttons
also how do i display the saved items on a different page like the users dashboard. any assistance would be highly appreciated

--------
Admin: There is an updated script for this - #106 - Liking & Saving CMS Items 
--------

Comments

7 comments

  • Comment author
    Julian Galluzzo

    Hey Sidney! I'd recommend cloning the demo project to check out how the page structure is 🙂
    https://www.memberstack.com/scripts/liking-saving-cms-items

    0
  • Comment author
    Matt Hoag

    Julian Galluzzo would this code work the same on a CMS page as it would on a CMS collection

    could I use this to mark an individual daily video lesson as complete vs. checking boxes on the grid or matrix view?
    0
  • Comment author
    Sidney Esiri

    Julian Galluzzo I’ll try this and get back to you. Thanks

    0
  • Comment author
    Julian Galluzzo

    It’s all attribute based so it should work the same as long as the right attributes are used!
    And no problem 😀

    0
  • Comment author
    Rubén Alejos Dasilva

    Hey team!

    I'm using Memberscript #106 to save the liked cms items. Is there any change to export that data to Airtable to know which user liked which item?

    0
  • Comment author
    A J

    Hey Rubén Alejos Dasilva, I am not sure if going via custom code approach to update Airtable would be secure enough. However, in case you have some automations which sync Memberstack and Airtable at regular intervals via WhaleSync / Make / Zapier, you could try syncing the member JSON in Airtable which will have the liked items ID and you could possibly figure out a way to make sense of the liked items in a readable way using some formula / other field in the base.

    0
  • Comment author
    Rubén Alejos Dasilva

    Ohh nice, I didn't know it's stored in the Memberstack JSON. Thanks, I will try to find a way

    0

Please sign in to leave a comment.