0

I have looked through the hooks and cannot figure out which hook could provide a way to alter a form in the control panel (e.g. the create/edit member form or publish/edit entry form). I don't want to use the CSS/JS hooks because that's altering it client-side.

Is there a way to either:

  1. Grab the output prior to it being sent to the client
  2. (even better) Get the objects used to create those forms and alter them?

I also want my extension to be able to be called on every control panel page.

1 Answer 1

1

I doubt there is a way to perform that kind of modification using a hook.

What you could do instead (if you need to alter all forms) is modify _shared/form View file (but then of couse you'll need to be sure to keep the changes when you update the system)

3
  • Yuri is almost certainly correct. This would require a modification of core code; Control Panel views don't go through a hook and get rendered by the templating engine, so there's no reasonable way to modify them on the fly like that, expect an accessory which would require browser side changes to the form.
    – jrothafer
    Commented Nov 17, 2015 at 14:05
  • In EE2, doesn't "channel_form_entry_form_absolute_start" allow this?
    – Don Rhummy
    Commented Nov 17, 2015 at 18:36
  • @DonRhummy That's for front-end entry form I believe. Besides, Don needs to modify at least several forms in CP, not just entry form Commented Nov 18, 2015 at 7:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.