What is the difference of Orchard CMS Input field vs Text field?
Asked Answered
K

1

6

Would you help me to understand what's the difference of this two fields in Orchard CMS?

Many thanks,

Rocky

Kleinstein answered 27/9, 2013 at 15:32 Comment(0)
D
8

The InputField is newer than the TextField and has more options, such as the ability to set the type (e.g. text, tel, email), autofocus, autocomplete, placeholder text, editor css class and maxlength.

The TextField on the other hand supports a flavor, allowing you to turn the text field into a single line textbox, a textarea, a markdown editor, html editor, or any other flavor provided by any module.

In my opinion, we should consider getting rid of the Input Field and update the TextField in core with the capabilities found in InputField. This avoids confusion and at the same time offers greater flexibility.

Daye answered 28/9, 2013 at 5:18 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.