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

Amigo 2019-08-15 10:04:22 +02:00
parent 304d32c4a3
commit 7fce4d8417

@ -195,31 +195,31 @@ The Next Field that is added, is Greetings. We want the Greetings to be in the A
[00:33:11](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h33m11s)
Now that the Admin View is in place, the Component can be created. Click 'new'. We are going to give our Component a System Name since this is the second Hello World tutorial, called version 2. It is given a Code Name which is the same as the first one; Hello World, and its Version '2.0.0' [00:33:35](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h33m35s) It will be necessary to add Company Names, Author, Email, Website and Short Description.<<<<
Now that the Admin View is in place, the Component can be created. Click 'new'. We are going to give our Component a System Name since this is the second Hello World tutorial, called version 2. It is given a Code Name which is the same as the first one; Hello World, and its Version '2.0.0' [00:33:35](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h33m35s) It will be necessary to add Company Names, Author, Email, Website and Short Description.
### Adding A Admin View
[00:34:01](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h34m01s)
Now that we have those in place the next thing to do would be to add an Admin View. Since the Admin View can only be added once the component's been saved for the first time, let's save it. Our component has been saved. Opening the Admin View we can link Admin Views to this Component. There are two places to do this under Settings. You can click on Component Admin View, you can click on this 'Create component admin view for this joomla component". [00:34:40](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h34m40s) Or you could in the Admin Views click on Create. Both these buttons take you to the same place. This used to be the old way in how people would add Admin Views to their Component. And that's why we left it here. But within the new JCB after our transition away from Repeatable Fields, we can handle all of it within the Admin View Tab. Just click Create. We are sure we have saved all our work so we can click OK. Again we are faced with something that looks very similar to when we were linking the Fields, [00:35:18](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h35m18s) except that we are dealing with the Admin View and linking Admin Views to this Component.
Now with those things in place the next thing to do would be to add an Admin View. Since the Admin View can only be added once the component has been saved for the first time. 'Save' it. The component has been saved. Open the Admin View, it can be linked to this Component. Under Settings there are two places where this may be done. Click on Component Admin View, and click on this 'Create component admin view for this joomla component'. [00:34:40](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h34m40s) Or in the Admin Views click: 'Create'. Both these buttons lead to the same place. This used to be the old way to add Admin Views to Components and that is why it has been left there. But within the new JCB after the transition away from Repeatable Fields, it can all be handled within the Admin View Tab. Just click Create. If we are sure all our work is saved; Click 'OK'. Again there is something that looks very similar to that when we were linking the Fields, except that we are dealing with the Admin View and linking Admin Views to this Component. <<<<
### Clicking On Plus Button To Open First Line
[00:35:25](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h35m25s)
I'm going to click on the plus Button to open our first line. We want to link the Greeting in View. We going to leave the Default Icon of Joomla, but there are a whole list of Icons available. These icons are Icomoons which are the Joomla Default Icons that are part of the Joomla back end and front end. You can search Icomoon and you will find on Joomla's website [00:36:04](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h36m04s) a whole picture map of all these icons. Then I most certainly want this view to be part of the Main Menu. I want an add record on the Dashboard. I want a list record on the Dashboard, that means clicking on something and it shows us the list of greetings. I want it in the Submenu.
Click on the plus Button to open the first line. We need to link the Greeting in View. Leave the Default Icon of Joomla, there are a whole list of Icons available. These icons are Icomoons which are the Joomla Default Icons that are part of the Joomla back end and front end. Search 'Icomoon' and you will find on Joomla's website a whole picture map of all these icons. [00:36:04](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h36m04s) Then I most certainly want this view to be part of the Main Menu and would like an 'add record' on the Dashboard. If I want a 'list record' on the Dashboard, that means clicking on something and it shows us the list of greetings; I want it in the Submenu.
### Auto Check-in Feature
[00:36:23](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h36m23s)
The Auto Check-in feature. When you create a record that are stored in the Database and someone else comes and wants to edit that record, you want to prevent people from working on the same record at the same time, since one of them is going to lose their work. Joomla has this feature by which you can check out an item. And when someone else tries to open it, it tells them it's not available, it's [00:36:58](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h36m58s) checked out. The problem with seeing though is that this check-out can be problematic, because people don't save, they just open it maybe to have a look at it, and then instead of clicking cancel or close, they just click back. The item doesn't get checked back into the database. The Auto Check-in feature is a nice add-on that JCB has set in place, [00:37:25](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h37m25s) which you can set that an item which are checked out longer than a day, is obviously one that was missed, and should be checked-in automatically. This is one of the reasons why I developed JCB because I have all these little tweaks that I want in all my views but I know that [00:37:46](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h37m46s) if Joomla changes something and I need to change this little tweak, going to every single view is cumbersome. So here it simply click whether you would like this, and if Joomla makes a change that we need to know, adapt this feature we just change it in the Compiler and it immediately compiles correctly for all the components mapped in it.
The Auto Check-in feature. When a record are created that are stored in the Database and someone else comes and wants to edit that record, and want to prevent people from working on the same record at the same time, since one of them is going to lose their work. Joomla has this feature by which you can check out an item, and when someone else tries to open it, it tells them that it is not available, it has been checked out. [00:36:58](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h36m58s) Apparently this check-out seem to be problematic, because if people do not save, and open it maybe to have a look at it, and then instead of clicking cancel or close, they just click back. The item does not get checked back into the database.[00:37:19](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h37m19s) The Auto Check-in feature is a nice add-on that JCB has set in place, which you can set that an item which are checked out longer than a day, is obviously one that was missed, and should be checked-in automatically. This is one of the reasons why I developed JCB because I have all these little tweaks that I want in all my views but I know that [00:37:46](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h37m46s) if Joomla changes something and I need to change this little tweak, and have to go to every single view will be cumbersome. Simply click whether you would like this, and if Joomla makes a change that we need to know, and adapt this feature we just change it in the Compiler and it immediately compiles correctly all the components mapped in it.
### Keeping Of History Feature
### Keeping Of History - Feature
[00:38:10](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h38m10s)
The other feature which I think is also great is this Keeping of History. If I want to keep track of all the changes made to any item of greeting. Then I just need to tick this Keep History and JCB will dynamically add all the needed structures so the Joomla's [00:38:30](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h38m30s) Integrated History Component will work alongside your third-party Component and keep track of every item and its changes. That is just a tick box and JCB does the work.
The other great feature is this 'Keeping of History' to keep track of all the changes made to any item of Greeting. Simply tick this 'Keep History' and JCB will dynamically add all the needed structures and Joomla's [00:38:30](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h38m30s) Integrated History Component will work alongside your third-party Component and keep track of every item and its changes. That is just a tick box and JCB does the work. <<<<<<
### Has Metadata Adds Metadata Fields To The View