diff --git a/5.-Field-Types:-11-23-2018-Work-in-progress.md b/5.-Field-Types:-11-23-2018-Work-in-progress.md index 24bb6dd..9392176 100644 --- a/5.-Field-Types:-11-23-2018-Work-in-progress.md +++ b/5.-Field-Types:-11-23-2018-Work-in-progress.md @@ -19,10 +19,10 @@ We could just as well go into Component Builder Since it has the demo applicatio If you click on add a Look It will open the edit and it keeps you on the Look. It also opens a list view where the list of Looks will be displayed. We added an import feature which the standard Joomla! components don't have. We will explain that later. If it's new you can add also text to your radio button. If I add something to the text field it opens an alias which is also a text field. There is a new Joomla! repeatable field and you can add information to it. This was a quick look at the features in the demo component included with the Joomla! Component Builder when it is installed. The [APPENDIX](https://github.com/vdm-io/Joomla-Component-Builder/wiki/Using-the-JCB-Demo-Component-While-Building-Your-Local-Development-System) has a very detailed, technical explanation of the demo component installation and inner workings plus code, along with step by step instructions on building a local development LAMP environment to run Joomla!, and JCB on. It also explains how to compile and install the demo component using JCB. ### How Fields Get Into the Component and Use the Joomla! infrastructure -Now let's look at how fields get into the component and use the Joomla! infrastructure. If we go to Admin views and select Look Open look you'll find the fields we just looked at. The name is used to map the field into the view using the field here. Reason why you cannot add using this area is because this is to edit existing fields. Instead of adding them. So, if you were to open a admin view you can edit them from here especially if you Have many components and many fields. This is a way to Sort of just look at the fields related to this components. If you were to add more Fields you would open this box and this is where you'll be adding them. Let's get back to field types because that's really where it all starts. We've already added all the field types to JCB that I think you will need. +If we go to Admin views and select Look Open look you'll find the fields we just looked at. The name is used to map the field into the view using the field here. Reason why you cannot add using this area is because this is to edit existing fields. Instead of adding them. So, if you were to open a admin view you can edit them from here especially if you Have many components and many fields. This is a way to Sort of just look at the fields related to this components. If you were to add more Fields you would open this box and this is where you'll be adding them. Let's get back to field types because that's really where it all starts. We've already added all the field types to JCB that I think you will need. ### Field Types are Mapped Into Libraries Inside of Joomla! -The field types are mapped into the libraries inside of Joomla! Joomla! has many field types and for each field type which you build you need to set certain values in an XML document. These values in our free samples use a checkbox Set Up in Properties. So, you have to be certain when changing properties that you adjust the corresponding field. This applies only to the checkbox field. Most of the time you would never need to do that. An exception is adding more field types which we haven't covered, or if you want to extend the existing field types. For the most part you should not tinker with field types. I hope this explains where the field type comes from and the amazing scale produced from its use. +Joomla! has many field types and for each field type which you build you need to set certain values in an XML document. These values in our free samples use a checkbox Set Up in Properties. So, you have to be certain when changing properties that you adjust the corresponding field. This applies only to the checkbox field. Most of the time you would never need to do that. An exception is adding more field types which we haven't covered, or if you want to extend the existing field types. For the most part you should not tinker with field types. I hope this explains where the field type comes from and the amazing scale produced from its use. ### Add Your Own Field Type Using JCB With most other Component Builders you need to wait for the developer to add a new field type. With Component Builder you can add your own field type which requires mapping it to the Joomla! library. Joomla! has their field type set to certain types now such as a repeatable field which is quite tricky and needs special attention even in the code of the JCB compiler. But the majority of field types are very straight forward and simple to implement. So, we have created tutorials to help you with the learning process.