Updated 044 Hello World Component with Joomla Component Builder Creator Extended (markdown)
parent
1a080b0bac
commit
41373b7ba0
@ -100,21 +100,21 @@ In JCB it ships with quite a lot of Fieldtypes. Open the Fieldtypes area. There
|
|||||||
|
|
||||||
[00:14:40](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h14m40s)
|
[00:14:40](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h14m40s)
|
||||||
|
|
||||||
It is advisable not to use Repeatable Fields anymore.<<<<<<<<<<<<<<
|
It is advisable not to use Repeatable Fields anymore. Since JCB used Repeatable Fields quite excessively, [00:14:49](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h14m49s) and due to the fact that Joomla is now discontinuing this Fieldtype, we had to migrate all of the Repeatable Fields to Sub Form Fields. Part of the reason why I am redoing the Hello World tutorial, is because of the fact that Sub Forms are now being used all across JCB and there has been a few changes in implementation.
|
||||||
|
|
||||||
Since JCB used Repeatable Fields quite excessively, [00:14:49](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h14m49s) and yet due to the fact that Joomla is now discontinuing this Fieldtype, we had to migrate all of our Repeatable Fields to Sub Form Fields and it was an amazing huge process. Part of the reason why I'm redoing the Hello World tutorial, is because of the fact that Sub Forms are now being used all across JCB. There's been a little few changes and how things are implemented.
|
|
||||||
|
|
||||||
### Add New Fieldtypes
|
### Add New Fieldtypes
|
||||||
|
|
||||||
[00:15:23](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h15m23s)
|
[00:15:23](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h15m23s)
|
||||||
|
|
||||||
Here you can see all the Fieldtypes that I've been setup in JCB already. You could always add new Fieldtypes as JCB and Joomla continues to evolve and become better at what it does we will be adding more Fieldtypes. Whenever we would be confronted by Fieldtype that needs a little bit of extra tweaking within the Compiler, I would hope to be ahead of all of you most of the time in adding that [00:15:54](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h15m54s) Fieldtype in there if it needs really that. Most of the time Fieldtypes do not need extra help it's only Fieldtypes like Subform that does. But Fieldtypes like URL, Text, Tel, SQL and Tag it needed some extra help but most of these don't.
|
Here you can see all the Fieldtypes that I have set up in JCB already. You could always add new Fieldtypes as JCB and Joomla continues to evolve. Whenever you would be confronted by a Fieldtype that needs a bit of extra tweaking within the Compiler, I would hope to be ahead of you in adding that Fieldtype if necessary. [00:15:54](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h15m54s) With most of the time Fieldtypes extra help is not needed. It is only Fieldtypes like Subform and perhaps with some Fieldtypes like URL, Text, Tel, SQL and Tag that help may be necessary
|
||||||
|
|
||||||
### Fieldtypes Helps Setup Properties
|
### Fieldtypes Helps Setup Properties
|
||||||
|
|
||||||
[00:16:14](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h16m14s)
|
[00:16:14](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h16m14s)
|
||||||
|
|
||||||
The way a Fieldtype works is that it helps you setup what we know as the properties. The property has a Name, it has a Default value, it is either Adjustable or not Adjustable. It's Mandatory or not Mandatory, Translatable. You can give it a little Description, that when you use the Fieldtype you can always come back to this. This information can be gathered from going through the Joomla Core Libraries. [00:16:49](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h16m49s) Because Fieldtypes are only mapping Joomla's own implementation of Fieldtypes. If we were to open a Fieldtype that's already been created like the Text field, you see that these properties are already there and in place. The Fieldtype is 'text'. The 'name' is 'any text'. When we say that the type is text, then this is not adjustable. [00:17:18](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h17m18s) We leave this unticked, if it is adjustable, we can tick it. It is most certainly Mandatory. That is how you setup Fieldtypes. I'm not going to go into too deep, since there is extra tutorials on how to do Fieldtypes. I just wanted to give you a brief overview.
|
The way a Fieldtype works is that it helps you setup what we know as the Properties.<<<<<<<<
|
||||||
|
|
||||||
|
The property has a Name, it has a Default value, it is either Adjustable or not Adjustable. It's Mandatory or not Mandatory, Translatable. You can give it a little Description, that when you use the Fieldtype you can always come back to this. This information can be gathered from going through the Joomla Core Libraries. [00:16:49](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h16m49s) Because Fieldtypes are only mapping Joomla's own implementation of Fieldtypes. If we were to open a Fieldtype that's already been created like the Text field, you see that these properties are already there and in place. The Fieldtype is 'text'. The 'name' is 'any text'. When we say that the type is text, then this is not adjustable. [00:17:18](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h17m18s) We leave this unticked, if it is adjustable, we can tick it. It is most certainly Mandatory. That is how you setup Fieldtypes. I'm not going to go into too deep, since there is extra tutorials on how to do Fieldtypes. I just wanted to give you a brief overview.
|
||||||
|
|
||||||
### Creating Fieldstypes
|
### Creating Fieldstypes
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user