Hey,
I have a dynamic category page which I would like to filter the data showed in a repeater by the logged-in-user.
I did as described in this article , but when I open the fields list in the data set settings panel, I didn’t have the Owner field.
(if it’s relevant, this collection read permission is set to ‘anyone’ (I need to read from it for visitors in another page), the dataset Mode is Read-only and the page permission is members only)
Is there any condition for which fields to show in this list?
What am I doing wrong? have I missed something?
I tried to do hacks of filter and query by code, but that somehow not always work and when I redirect to another page, It show all items before it moves to the other page, so that not a solution anyway.
The link is broken.
However
I am facing the same issue, I have a repeater on my homepage with a dataset with a filter on Owner. I also have a dynamic dataset page but when I want to add a filter on this dataset, I don’t have the owner field.
Is there a an other way to restrict a dynamic dataset page to the record author ?
You can do this by setting permissions on the content collection that your dataset is using, set it to “Site Member Author” for Read (and optionally same for Update/Delete depending on your needs): CMS: Collection Permissions Overview | Help Center | Wix.com
However as an administrator when dataset is loaded on clientside, every record are fetched even if I am not the author. But when I refresh the page (dataset is fetched and displayed from SSR) only my record are displayed. So if you are not an admin, it works perfectly.
It may not be a major issue, but it could confuse devs while testing on an administrator account. I don’t know whether it is an expected behavior or a know issue.