Hey guys I’m wondering if anyone can suggest a workaround for my issue.
I have created a new Addon for fieldtype called “Encrypt” so its just a plain text field that will encrypt value when saving to database and decrypt when retrieving.
I can get the decrypted value while previewing list of entries in the admin and via rest api. However, I cannot seem to figure out how to decrypt it while in the update/edit page of the entry. I get the ecrypted value in the input area.
Right now I’m hardcoing an event within modules/Collections/Controller/Admin.php
around line 175
with this $this->app->trigger("collections.admin.entry", [&$entry]);
. This way I can catch the entry before showing and decrypt the values for my fieldtypes.
I guess my question is anyone know if there is a way to hook into the entry
to update values before its rendered to the view? Is there something I can do within the .tag
file for my field-encrypt.tag
?
Let me know if this makes sense? Thanks!!!