Allow Filtering on Internal Documents for RichText Block LinkFeature
#10831
tistocks
started this conversation in
Feature Requests & Ideas
Replies: 2 comments 3 replies
-
You can override the doc relationship link field and inject your own |
Beta Was this translation helpful? Give feedback.
3 replies
-
I didn't notice that fields could also be a function. That's brilliant, however, I never would have figured that out from the docs. Maybe they should be expanded here. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, the RichText Block LinkFeature only supports filtering the collections. However, for complicated sites (for example, multi-tenant), this does not support filtering what document within the collection should be displayed. Of course, access control on the included collection will limit to only the documents users can access, but that's not sufficient for many more complicated use cases. It would be nice to support further filtering of the documents based on the current document.
For example, my specific use case:
In a multi-tenanted site, a document with a RichText Block should not support linking to a document in a different Tenant (even though they are in the same collection).
I have a changes set that demonstrates this change, but I need some help from the team to get it in as I have never contributed to Payload in the past.
Beta Was this translation helpful? Give feedback.
All reactions