Displaying referenced items by filtering them with MS Answered
I got two types of users: Creators and Users, For a Creator Dashboard I need to have 4 CMS collections displaying only items that are referenced to them. Is there a way I can filter them out with Memberstack?
Both user and the Creator are referenced in them. Technically the User is the creator as they submit some kind of request. But I need to show it only on the Creator Dashboard. Ideal solution would be to have a separate Plan+Gated Content for each Creator and use data-ms-content="CMS Link(Their MS ID)" but for some reason that doesn't work. Tried with Webflow ID but still the same
Comments
6 comments
ahhh, so basically person x creates an item for person y, and you want it to show up on their dashboard?
do you have the member id for person y stored in the cms item?
Yess. I got both Webflow IDs and Memberstack IDs for every User and Creator inside CMS, also on Memberstack custom fields as well
I would probably edit the script logic of the filter by member id script in this template here https://www.memberstack.com/webflow-templates/crm-app-template
add 2 attributes to the item, like ms-code-owner-id and ms-code-viewer-id and then use it to filter out who can see it by 2 people
I'm using that script right now, I was just looking for a way to filter it immediately like data-ms-content does, script takes a second to filter them out. But this works as well, thank you 🙂 Also could you please take a look at the DMs?
Alsoo, do you know how would I limit the number of cms items displayed when using this script? If I use native limit it sometimes doesn't show all the items
Sure! As for limiting the number, I would recommend working it into the script instead of using the native webflow limits
Done, thank you!
Please sign in to leave a comment.