Skip to content

Make Inputfield::renderReady hookable #12

@gingebaker

Description

@gingebaker

Would it be possible to make the renderReady function in Inputfield Core class hookable?
https://github.com/processwire/processwire/blob/master/wire/core/Inputfield.php#L1030
I could not find another way to add Javascript or CSS to Inputfields when the Inputfield is loaded via Ajax (Repeaters or loadedByAjax).

More info here on my forum post:
https://processwire.com/talk/topic/14187-inputfieldrenderready-hook-alternative/

I think it would be useful if someone doesn´t actually want to add/extend an existing inputfield, but only add some special additions to the existing via hooks. I personally would need it for a module that adds another kind of upload tool to the current InputfieldImage. (PlUpload). I need to add some JS and CSS.

Perhaps there is another way of doing such things, but I could not find any till now?

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions