0
votes

Orchard version is 1.6.

I created a new Content Type named Book, and added some Fields to this type.

I have 3 questions about fields in content type.

  • What is the difference between Input Field and Text Field?

  • How to bind Enumeration Field with data, for example, I want to create a Enumeration Field with data "Beijing", "Shanghai", "Guangzhou"?

  • I have uploaded a .docx file with Media Picker Field writing alternative text is This is my first attachment, but MediaPickerField link is displayed in webpage, not my written alternative text. How to solve it?

That is all. Thank you for your answers!

1
Question 3 solved! My method is to change field display name, from "Media Picker Field" to "Attachment Download link"Jason

1 Answers

1
votes

Great questions... The difference between input field and text field is that input field should not exist. :) I was strongly against it, because it would cause confusion, and it does... The input field is supposed to help you use the new html5 input types. The text field is about entering all flavors of text. One is surfacing an implementation detail, something specific to the rendering technology used, the other is about content semantics.

Not sure what you mean with the second question. What prevents you from doing that? The values are entered in the content type editor, in the settings that appear if you deploy the field (the little > next to it).

Side note: probably would have been best to create three different questions...