Replies: 2 comments 2 replies
-
Hey @hdodov I would love to help here, I think there are a couple ways to solve this.
Am I understanding your question correctly? Let me know! |
Beta Was this translation helpful? Give feedback.
1 reply
-
You can check the API via
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to implement dynamic values in Payload to add support for text like:
From my understanding, I have to use the
afterRead
collection hook. However, I need some sort of check to see if the read comes from the admin or not.If you're editing the field in the admin, the value should not be substituted, so that you can edit the variable. However, if you directly call the REST or GraphQL API from the front-end, the value should be substituted.
How do I check if the value comes from the admin? Alternatively, is there another way to implement this altogether?
Beta Was this translation helpful? Give feedback.
All reactions