Webflow sync, pageviews & more.
NEW
Answers

Can I add a field on a Webflow CMS collection that references the user who created it, in order to create a user-specific dashboard for each logged in user?

Yes, you can add a field on a Webflow CMS collection that references the user who created it. This can be done by using a Reference field type in your CMS collection and linking it to the User collection.

To set this up, follow these steps:

1. Create a new Reference field in your CMS collection by going to the Collections panel in your Webflow project and selecting your desired collection. Then, click on "Add Field" and choose the "Reference" field type.

2. In the Reference field settings, choose the User collection as the collection to reference. This will create a field that can be linked to specific users.

3. Once you have set up the Reference field, you can create a user-specific dashboard for each logged-in user by filtering the CMS items based on the currently logged-in user's ID.

4. In the dashboard page, you can use a dynamic list or collection list to display the CMS items that are associated with the logged-in user. Within the settings of the dynamic list, you can set the filter to only show items where the Reference field matches the logged-in user's ID.

5. To make the dashboard user-specific, you'll need to authenticate users in your Webflow project. You can use a third-party authentication provider like MemberStack or Firebase for user authentication.

By following these steps, you can create a user-specific dashboard where each logged-in user can see their own CMS items that they have created.

Rate this answer

Other Webflow Questions