codefog / contao-haste

Haste is a collection of tools and classes to ease working with Contao
http://codefog.pl/extension/haste.html
MIT License
42 stars 24 forks source link

FR: add new form fields after/before existing ones #130

Closed fritzmg closed 6 years ago

fritzmg commented 6 years ago

Use case: https://github.com/1up-lab/contao-mailchimp/pull/18 :)

Currently I have to remove form fields altogether in order to insert something before them in an existing form. For the linked event it would be handy if you could define if a form field should be added before or after a specific other form field.

Toflar commented 6 years ago

Why? Did you use addFormField()? You can pass an instance of ArrayPosition and even give that a name 😄

fritzmg commented 6 years ago

Haha, oops 😁