Updated 044 Hello World Component with Joomla Component Builder Creator Extended (markdown)

Amigo 2019-08-14 07:53:21 +02:00
parent 11ab16b270
commit 17abbdccb9

@ -130,15 +130,15 @@ To give a quick demonstration: If I click on this button(pencil), and say; chang
[00:21:18](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h21m18s)
Let's create our first field. It's going to be a Text field, we going to call it greetings. I'm going to update the label with greetings. This is what will be visible in the Database, greeting, singular is going to be the Database Name. I'm going to leave most of the others default. [00:f21:48](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h21m48s) Autocomplete is on. Validation. You know We can leave all of those. It doesn't really matter. Let's just maybe change the hint 'add greetings here'. Then I'm going to remove the description. Definitely take out the default text, otherwise it will always appear.
The first field that we are going to create is a Text field, which we will call 'Greetings'. Then Update the label with 'greetings' in the 'XML Field definition' area. This is what will be visible in the Database, 'greeting' (singular) is going to be the Database Name. Most of the others will be left as default. [00:21:48](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h21m48s) Let's just maybe change the hint 'add greetings here'. Then remove the description. Take out the default text, otherwise it will always appear.
### Databases
[00:22:19](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h22m19s)
Now in regards to the Database, that is what these features are all about. Since Text Fields can differ, we didn't come out and say well all of them are going to be this size. We left it up to you to decide what kind of Text Field of this is going to be. It's all up to you. That would mean that you would need to know a little bit more about MySQL and Databases to really effectively use this [00:22:49](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h22m49s) most of the time it is available on Google. If you do not know what would be the best for a Text Field or a Date Field, you can Google that or you could simply go and look at Joomla's own implementation. It's got an article Manager, and you can go into its XML Database and look at what [00:23:14](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h23m14s) Database Values was used and just use the same whatever be the case. You should be able to navigate through this without much problems. Since that is what is required you need to have perseverance, you need to be curious, [00:23:36](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h23m36s) dig through things, and doing that you will eventually succeed. Because these values are all movable, that means that setting them wrong, could break things. That's why I always encourage those who are going to use JCB, to do a little bit of homework and to prepare themselves to get involved in programming more effectively. [00:24:00](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h24m00s) That would only be beneficial to all of us I suppose. Because good programmers makes good programs and makes the web a saver place. Having created our first field I think I'm going to reuse Name and maybe also Description. [00:24:23](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h24m23s) Those are part of the Demo Component. Since Fields can be linked into any Admin View and therefore belong to any Component, it doesn't bother that it is linked to the Demo Component already. What is true though, is that if you change it, it'll affect both Components.
Now in regards to the Database, that is what these features are all about. Since Text Fields can differ, not all of them are going to be this size. It is up to you to decide what kind of Text Field this is going to be. A bit more knowledge about MySQL and Databases is necessary to effectively use this. [00:22:49](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h22m49s) If you do not know what would be the best for a Text Field or a Date Field, Google that or simply look at Joomla's own implementation. It has an article Manager, and you can go into its XML Database and look at what Database Values was used and just use the same whatever be the case.[00:23:14](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h23m14s) Because these values are all movable, and by setting them wrong, could break things. Having created our first field, we can reuse Name and maybe also Description. [00:24:23](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h24m23s) Those are part of the Demo Component. Since Fields can be linked into any Admin View and therefore belong to any Component, it does not matter if it is already linked to the Demo Component . Although, if it is changed, it will affect both Components.<<<<<<<<<<<<<<<
### Creating A Admin View - Need To Do Some Preparations Before Doing Admin Views
### Creating a Admin View - Need To Do Some Preparations Before Doing Admin Views
[00:24:46](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h24m46s)