Updated 5. Field Types (markdown)
@@ -15,17 +15,18 @@ After adding some content, save and close the article so we at least have a list
|
||||
+ [05:45](https://youtu.be/OhLzvThDXls?list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=5m45s) **Compile error** _Remember to select correct options that suit your build._
|
||||
We could just as well go into Component Builder Since it has the demo application. See a detailed explanation of the demo component and building a local developer environment to run it. After selecting the demo Compile, it displays a warning because we haven't set some options in the global settings. It doesn't mean that there's been an error in the compiling. It just means it couldn't move the file to the git repository. If we deselect some compile options and start again it doesn't give you the same warning. Click install and compiled component gets installed Into this Joomla site. It doesn't have any images because that we don't ship the images with the components. It's easy to use your own.
|
||||
|
||||
### Joomla! Component Builder Demo Component
|
||||
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 your normal Joomla! components don't have. We will explain that later. If it's new you can add text to your radio button. If I add something to the text field it opens an alias which is also a text field. We also have a repeatable field and we can add information to it. That is a look at the features in the demo component. The appendix has a detailed description of the demo component along with step by step instructions on building a local development environment to run it on.
|
||||
|
||||
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.
|
||||
|
||||
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 sit 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 it's Field. This is applies only to properties for the checkbox field. Now you might wonder if you need to set this and 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 would not should not tinker with this I am simply trying to explain to you where the field type Comes from and the amazing scale produced from its use.
|
||||
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.
|
||||
|
||||
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 simply needs to map 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 compiler. But the majority of field types are very straight forward and simple to implement and we have created tutorials to help you with the learning process.
|
||||
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.
|
||||
|
||||
We have not implemented all the attributes that can be targeted though. You might need to come and add if you want to use them for example I added this show on Action While recently to all field types which I found because this is a way of showing and hiding Fields based on other fields values and an application replace in component builder to take control of the features to show and hide fields this is an added feature which you might self actually has and if we can and it component That we are developing if we can use show on instead of the component Builders version I would obviously suggest with me do that And none the less I would still explain much more on this topic as we continue So just Briefly let me start here at the top
|
||||
We have not implemented all the attributes that can be targeted though. You might need to add them if you want to use them. For example, I added this show on Action While recently to all field types which I did ti show and hide fields based on other fields values. An application was replaced in Joomla! Component Builder to take control of the features to show and hide fields. This is an added feature which you might use yourself and add to your component. If you are developing a feature we can add to a Component Builder version I would obviously suggest to do that I would still explain much more on this topic as we continue. Getting back to field types I continue.
|
||||
|
||||
You have name which is called type And a value for checkbox And it Must be set to not adjustable because that is the way to Miller expected If you don't understand any of this information that I'm showing you here Then a place to go to Is this your l Let me open that for you It's called the form fields You see a whole list of form Fields and these are the same for all Fields you just saw In our application If I was to take Checkbox Up Your list checkbox Checkboxes Ox Ok if I was open that you'd see that they give you a list of those Fields type Name and I tell you what is mandatory And what is optional And basically we are just mapping those Data Into this 4 here And if we wanna add another attribute is click on the + and it creates a new field and we add the name at The value sweet peace which is in correspondence And some information This is really for yourself this information block here We put information there when later when you use this field type you are reminded what this specific at Rip And I I basically took this information Why Copying it right here from To my last website and placed it in there And where I felt there might be more said I added some customs text to it And what these values will do is it'll create an XML string like that In your form Which Joomla then uses to build those forms So Basically we first setup a fuel Type by Telling you Which input Values would be able to use for the specific field type which is the status Checkboxes And then we save this And then later you can reuse this fuel type when you start creating fields So let me just close this check box And go to text field And you'll see that you're is a List of the fields That used text field as its type Now you can open one of these fields And you're the bottom you see very something very similar if I was to go back here And go to text field Humorous website
|
||||
There is a name 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 all Fields you just saw in our component. If I was to take the checkbox Up Your list of checkboxes 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 here. If we want to add another attribute, click on the + and it creates a new field and we add the name at the value sweet peace which is in correspondence And some information This is really for yourself this information block here We put information there when later when you use this field type you are reminded what this specific at Rip And I I basically took this information Why Copying it right here from To my last website and placed it in there And where I felt there might be more said I added some customs text to it And what these values will do is it'll create an XML string like that In your form Which Joomla then uses to build those forms So Basically we first setup a fuel Type by Telling you Which input Values would be able to use for the specific field type which is the status Checkboxes And then we save this And then later you can reuse this fuel type when you start creating fields So let me just close this check box And go to text field And you'll see that you're is a List of the fields That used text field as its type Now you can open one of these fields And you're the bottom you see very something very similar if I was to go back here And go to text field Humorous website
|
||||
|
||||
You see that it shows you examples of how that XML line should look right see Now Yeah In the Field area where you created to field Basically gave the few the name this is just for the system The name used here is the one that is important That should be the correct name the label This name is just that you when you add it to your view You know this is what we used to identify it Weston explain adding it to the view In more detail This diet data type and things were also explain we only go into more depth around What a field is and how to build one I'm simply now looking at few pipes and showing you how the changes that you've made in field type Effects I feel that you would build with that type So here is that Detail that was in field type Member on change And it tells you What is mandatory in what is optional but that's basically because I placed it in the description right I mean let's be country close to go back to that field type And then take on property And we'll see that I added optional and mandatory To the description So that I can know is this option or mandatory Yes you could Possibly argued that I should have done it from here and that it's not true don't be necessary to add it there But you know this is that this The settings here is used when we compile the component Where is this Here is used for you You know what this field attribute is all about And maybe as weak Continue to develop this component I might Make it changed to that But I wouldn't make such a change that it affects anything that already exists Dramatically and anyway Ok so let's go back to a field
|
||||
|
||||
|
Reference in New Issue
Block a user