Timeline for Creating a field plug-in, need the com_content form to be enctype multipart
Current License: CC BY-SA 4.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 11, 2022 at 9:47 | comment | added | AndyGaskell | Thanks @Sharky that's ace, works really well. I'd tried it with onCustomFieldsPrepareDom, onContentPrepareForm, onContentPrepareData, onAfterRender and onContentPrepare, with no luck. I've not used onAfterDispatch before, that's really handy. | |
Jan 11, 2022 at 9:45 | vote | accept | AndyGaskell | ||
Jan 11, 2022 at 8:39 | comment | added | Sharky | @mickmackusa OK | |
Jan 11, 2022 at 8:39 | history | edited | Sharky | CC BY-SA 4.0 |
Add space
|
Jan 11, 2022 at 8:34 | comment | added | mickmackusa |
Do you want a space before enctype in the replacement? Instead of capturing the lookahead, you could alternatively: '/<form[^>]* id="item-form"[^>]*\K/', ' enctype="multipart/form-data"'
|
|
Jan 11, 2022 at 8:16 | history | answered | Sharky | CC BY-SA 4.0 |