Updated 5. Field Types (markdown)
@@ -45,13 +45,13 @@ We have not implemented all the attributes that can be targeted though. You migh
|
|||||||
|
|
||||||
Here is a complete list of [form fields](https://docs.joomla.org/Standard_form_field_types). There is a column which is called type and a value for checkbox and it must be set to not adjustable because that is the way it is expected. If you don't understand any of this information that I'm showing you here then a place to go to is to open the form fields and you'll see a whole list of form fields. These are the same for the fields you just saw in our component. If I was to take the checkbox in the list of check boxes and open that you'd see that they give you a list of those fields. Next type name and JCB tells you what is mandatory and what is optional and basically we are just mapping that data into this form.
|
Here is a complete list of [form fields](https://docs.joomla.org/Standard_form_field_types). There is a column which is called type and a value for checkbox and it must be set to not adjustable because that is the way it is expected. If you don't understand any of this information that I'm showing you here then a place to go to is to open the form fields and you'll see a whole list of form fields. These are the same for the fields you just saw in our component. If I was to take the checkbox in the list of check boxes and open that you'd see that they give you a list of those fields. Next type name and JCB tells you what is mandatory and what is optional and basically we are just mapping that data into this form.
|
||||||
|
|
||||||
If we want to add another attribute, click on the + and it creates a new field and we add the name at the value, tweak these switches to be in correspondence and some information. This information block here is for you to use. We put information there when when you use this field type you are reminded what this specific attribute is for. I took this information by copying it right here from Joomla!'s website and placed it in there where I felt there could be more said I added some custom text to it and what these values will do. They will create an XML string like that in your form Which Joomla! then uses to build those forms [14:05](https://youtu.be/OhLzvThDXls?list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=14m05s) **XML string format for joomla** _Reusable field types_. We first setup a field type by telling you which input values you can use for the specific field type which is the status check boxes. Save this and later you can reuse this field type when you start creating fields. Close this check box and go to the text field. [14:45](https://youtu.be/OhLzvThDXls?list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=14m45s) **Text field type example** _Fields within Text field type_. You'll see that there is a list of the fields that used text field as its type. You can open one of these fields and at the bottom you see very something very similar if I was to go back here and go to the text field on Joomla!'s website.
|
If we want to add another attribute, click on the + and it creates a new field and we can add the name for the value then tweak some of the switches requiring synchronization and provide some other information. The information block here is for you to use. We put information there when when you use this field type so you are reminded what this specific attribute is for. I added this information by copying it from Joomla!'s website and placed it in the provided area where I felt there could be more information. I added some custom text to it indicating what these values will do. They will create an XML string like that in your form which Joomla! then uses to build those forms [14:05](https://youtu.be/OhLzvThDXls?list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=14m05s) **XML string format for joomla** _Reusable field types_. We first setup a field type by telling you which input values you can use for the specific field type which is indicated using the status check boxes. Save this and later you can reuse this field type when you start creating fields. Close this check box and go to the text field. [14:45](https://youtu.be/OhLzvThDXls?list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=14m45s) **Text field type example** _Fields within Text field type_. You'll see that there is a list of the fields that used the text field as its type. You can open one of these fields and at the bottom you see very something very similar if I was to go back to the text field on Joomla!'s website.
|
||||||
|
|
||||||
+ [15:15](https://youtu.be/OhLzvThDXls?list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=15m15s) **Joomla XML example Text Field** _XML example_
|
+ [15:15](https://youtu.be/OhLzvThDXls?list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=15m15s) **Joomla XML example Text Field** _XML example_
|
||||||
|
|
||||||
You see that it shows you examples of how that XML line should look in the field area where you created the field. The field has a name which is just for the system. The name used here is the one that is important. That should be the descriptive name which is the label. This name is just what it is when you add it to your view. This is what we used to identify it. I am explaining how to add it to the view in more detail. This data type and other things were also shown to explain them.
|
You see that it shows you examples of how that XML line should look in the field area where you created the field. The field has a name which is just for the system. The other field used here is the one that is important. That should be descriptive text which is the field label. This is what displays when you add it to your view. This is what we use to identify it. I am explaining how to add it to the view in more detail. The data type and other things were also shown to explain them.
|
||||||
|
|
||||||
We won't go into more depth about what a field is and how to build one. We are looking at a few types and showing you the effects of a few changes I feel that you would make using those types. This is the detail that was in field type member on change and it tells you what is mandatory and what is optional because I placed it in the description. Click close to go back to that field type and then click on property. I added optional and mandatory to the description. It could have been done from here and if not true then it's not necessary to add it there. But you know the settings here are used when we compile the component where as this here is used for you to know what this field attribute is. Maybe as we continue to develop this component I might change it. I wouldn't make any changes that affects anything that already exists this dramatically.
|
We won't go into more depth about what a field is and how to build one. We have looked at a few field types and shown the effects of changes I feel that you would probably make using those types. This is the detail that was in field type Member On Change and it tells you what is mandatory and what is optional because I placed it in the description. Click close to go back to that field type and then click on property. I added optional and mandatory to the description. It could have been done from here so if not true then it's not necessary to add it there. But you know the settings here are used when we compile the component where as this here is used for you to know what this field attribute is. Maybe as we continue to develop this component I might change it. I wouldn't make any changes that affects anything that already exists this dramatically.
|
||||||
|
|
||||||
+ [17:43](https://youtu.be/OhLzvThDXls?list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=17m43s) **XML string within compilier** _How XML string is build and compilied within component builder_.
|
+ [17:43](https://youtu.be/OhLzvThDXls?list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=17m43s) **XML string within compilier** _How XML string is build and compilied within component builder_.
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user