"Hide" certain data to Data API, but not to Database Management

Hey,

for a customer I’m working on a project that contains data that should not leak before a certain date (Each row has it’s own one). I’ve set up a hook that blurs the data that should not yet be available, some fields of these rows are allowed to be shown so this works great.
It also works perfectly with the code on the site.

Unfortunately the hook is also called when I open the Collection manager. As soon as I edit something in the collection manager the ‘blurred’ entries are inserted into the real collection and the real data is lost.

Is there a server-side way to ‘hide’ this data to the outside, but keep it on the inside?

Hi,
You can query your collection in the backend, manipulate the results however you want in the backend (remove the irrelevant information) and send the new object to the backend. Click here to learn more about Calling Server-Side Code from the Front-End with Web Modules.

Should the issue persists, please send us screenshots and the code you were trying to implement so that we can better understand what you were referring.

Best,
Tal.