Nested Lists from Supabase in Toddle

  • /attachments/1314346069437710356/1314346070351941772/Screenshot_2024-12-06_at_10.38.45_AM.png

    Alex

    1 month ago

    Hey Toddlers! I need help with something that is probably very straight forward and something in my Webflow / Airtable brain that would call these "Referenced Items/records" or "Nested Items".

    I want to essentially show this grid of case studies and have a display photo and name of the studio/artist that uploaded them. How can I pull in the referenced owner and their info and place inside the list of case studies?

    see the example of my webflow marketplace with the logos inside the collection items from a referenced list.

    Make sense?
    Screenshot_2024-12-06_at_10.38.45_AM.png
    Screenshot_2024-12-06_at_10.41.25_AM.png
  • Vizualinx

    1 month ago

    Did you try with the AI assistent?
    Ask it for a function that would transform it to Json.
  • Lucas G

    1 month ago

    If they are different arrays, then you'll need a common id to link them
  • You can map the array before repeating over it or use filters to assign the data
  • Alex

    1 month ago

    Thank you guys, testing now and will report back
    πŸ‘πŸ»1
  • James

    1 month ago

    If this is something like Xano addons this should help https://docs.postgrest.org/en/v12/references/api/resource_embedding.html
  • /attachments/1314346069437710356/1314377509894357104/Screenshot_2024-12-06_at_12.46.35_PM.png

    Alex

    1 month ago

    Toddle is AMAZING and so easy!!!
    Screenshot_2024-12-06_at_12.46.35_PM.png
  • /attachments/1314346069437710356/1314379323280457728/Screenshot_2024-12-06_at_12.53.41_PM.png

    Alex

    1 month ago

    Custom cards now with the respective studio that uploaded the renders!
    Screenshot_2024-12-06_at_12.53.41_PM.png
    Screenshot_2024-12-06_at_12.53.37_PM.png
  • Vizualinx

    1 month ago

    How did you end up doing it?
  • Alex

    1 month ago

    This is the formula πŸ™‚
  • Vizualinx

    1 month ago

    Oh, now I looked back and saw that I didn't really understand the question. I thought you needed nested lists.
  • Alex

    1 month ago

    I don't know what I need hahah
  • MartinF

    1 month ago

    Awesome! With Supabase you can get it to a single 'view' so only one API call from Toddle and no need for formlulas. Just one nice chunk of JSON. https://supabase.com/docs/guides/database/tables?queryGroups=database-method&database-method=sql#views
    ❀️1

Stop scrolling. Start building.

toddle is a visual web app builder that rivals custom code β€” but accessible to your entire team!

Try toddle β€” it's free!

Β© Copyright 2024 toddle. All rights reserved.