Jump to content

Hook to conditionally render files/images custom fields


elabx
 Share

Recommended Posts

Hi! Does anyone know if there is a hook to filter out custom fields of image/file fields under certain conditions? For example, if the 'images' field is on certain template, I want to exclude the rendering of a 'url_address' field that would normally show within the custom fields.

I would have hoped somewhere like here would have been enable for hooks.

EDIT: As always, some writing makes the brain work, going to try the already famous hook before the InputfieldWrapper::render method lol

  • Haha 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...