Filtering by memberstack ID

Hello - I have a CMS which is populate through Make. Each item also has a memberstack ID field which has been populated. In my CMS template, I wish to filter and show all items for the current logged-in user. I am struggling to do this. Pretty sure it requires a bit of custom code, but Chat GPT, Claude etc isnt helping much. I am looking for someone who has done this before and is a CMS expert; i.e. can solve this immediately. Asides from this, I also require help implementing stripe as struggling to pass through meta data.

ANy help much appreciated…

Two approaches I use for this;

USERS COLLECTION

  • Have a separate Users collection with the MS ID.
  • Ref your user data to that Users collection
  • Use the User-specific collection page as the primary page for that user.
  • Use Webflow native filtering to filter items to that user via the ref field
  • Custom code to restrict Bob to Bob’s page, and auto-redirect him there.

FS FILTER, FS LOAD

  • Build a view of all user data using Finsweet Filter and FS Load
  • Use the MS ID as the filter text
  • Hide the filter
  • Set it programmatically when the user enters the page
  • Configure FS filter to show no results until a filter is set

Just to point out the obvious- neither approach has any data security at all to speak of, but the Webflow CMS isn’t designed for user-specific data storage.

If you needed it, you might be able to design a reasonable level of security using a reverse proxy to force-filter the data before it’s delivered to the browser.

Hello!

We actually have a script for that, but it only works if there are less than 100 items in the collection.

If you do have more than that, I would recommend one of @memetican 's approaches!

1 Like