From 6b4be5191257bc42792b641443027056833e61b5 Mon Sep 17 00:00:00 2001 From: Amigo <49749100+aamigo@users.noreply.github.com> Date: Mon, 20 May 2019 14:01:26 +0200 Subject: [PATCH] Updated 007 Admin Views (markdown) --- 007-Admin-Views.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/007-Admin-Views.md b/007-Admin-Views.md index 61816f9..23ed150 100644 --- a/007-Admin-Views.md +++ b/007-Admin-Views.md @@ -1,5 +1,5 @@ # ADMIN VIEWS -Hi, we are looking at admin views which is the next thing to be setting up in developing your component. First we started with [00:00:13](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h00m13s) field types. Looking at how to setup field types or improve on them. Then we looked at how to use those field types to build basic common fields. Now we going to look at how to take those fields and add them to admin views. [00:00:34](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h00m34s) Admin views like I explained in our initial GENERAL PLANNING video, it is basically forms the bedrock, the basis of your components database structure so your admin views is where your database structure is being developed. [00:00:56](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h00m56s) All your admin views which have their own table, now as we explained admin views have a single name and has a list record or a plural name. Then there is a system name and the reason why there they actually have three, is that let's say you have Want to reuse this specific admin view in another component [00:01:21](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h01m21s) with the same name but obviously adapting it to that component. The idea would be that you would then have two preachers showing up in your selection list. When you added to the component and so that might be difficult to discern which is which and so you can add the name of that specific component as part of just differentiating between [00:01:47](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h01m47s) the same names. That means you can have admin views with the same names, but with different implementation. In fact that is how you can do different version control concepts on components using the same admin view. [00:02:03](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h02m03s) Just inside of it making a few changes and in saving it so you could do that open preacher for example and in here you could say free version. This is the free version and then save as copy and then you can change the field that is linked. You can change some of the linked views. [00:02:25](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h02m25s) You can change some of your CSS, whatever other things you have done regarding this admin view, and then go to the free version of that component and link that specific one that specific view instead of the other. Anyway maybe I'm getting ahead of myself I usually do. So let's focus on admin views now to create a admin view. You just click new [00:02:54](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h02m54s) I'm goning to open preacher again because this is the one we are using as our illustration and you would see that there should be a name for a single record again that is where you would edit this records so that is in this case I said preacher and then there is a list of records [00:03:14](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h03m14s) and that's preachers. Then a short description and a normal description depending on what you would like to say. Then there is a type, now the read write, and the read only, changes the components editing view. If you say read only, then it will basically limit [00:03:36](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h03m36s) the fields to not be able to edit them. If you remember in this area here the modified "By field" cannot be edited because it's done automatically and when it was modified is also updated as every time you click save so this area can not be edited and that's how all the fields are going to look. [00:04:02](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h04m02s) If you select read only. If you leave it on read write, it will look like this and you will be able to edit it. Ok so that is looking at these fields. now there is a place for an icon if you hoover over the icon it gives you the dimensions that is needed. This basically is the icon. Then when you look [00:04:24](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h04m24s) at the dashboard, these icons are the one selected there. Ok so you can see that the icon has two of them one is the add icon, and one is there just a normal icon so if you hoover here you should see the image if it is set in [00:04:46](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h04m46s) in your images folder. So if you open the this it goes to your image folder you select the icon. When you hoover here those images are not in this image folder so it does not show up and then if you going to add preachers if you going to add a field just a field called category that is of the category type, [00:05:14](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h05m14s) then you should add a category icon. Since then the system will automatically know ok there need to be a category setup. And it will look for this icon to use for that category and if you select a category field that is a general category for the whole component which isn't directly linked to this [00:05:37](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h05m37s) view, then it will take the first view the system will look at which view when it processes it which view is the first one and usually that would be the first one you've created and it will use the icon in that but to be on the safe side if you using one category for them all just set the same icon on them all. But if you are going to use a category [00:06:02](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h06m02s) which is primarily focused on the preachers, and you just going to put preachers and a category then you need to add a category icon here four categories now permissional switch it got to do with your accessing and updating of data. So like you can see here we have [00:06:24](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h06m24s) view edit, view edit state, view edit own, views create, admin views delete, admin view access, admin view edit version. Now this edit if it is set if your own this managing group and it set to allowed then you can edit it. If you are a guest and it is set to deny, [00:06:49](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h06m49s) and no matter where you are in the front or the back of the site, you won't be able to edit this information even if you have a direct link. It won't allow you to edit it. Now it also has view access so somebody who might be not allowed to edit it may be allowed to view [00:07:08](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h07m08s) this content in the back end in the list view. Then it will show in the list view and they can see that it is there. Now you might think yourself why would I ever wanto to do that and you see because of your custom admin views and the way that you can connect them to your admin views, which we will look at later. You might want to display the record and [00:07:32](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h07m32s) just leave an custom admin link to the data. Let me show you an example of a component that you see here. There is a button underneath the company name. So it displays the record but [00:07:53](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h07m53s) if I was like this one whose profile is set to being locked. If I was to click on this you tell me that I do not have the permission to edit it, but if I was to click on this icon It actually loads the information that I looking for and [00:08:12](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h08m12s) that is the difference. The differences sometimes you want to use a custom, see this is a custom admin view and you might want to do something that is not a editing view, but a custom view and then you would like to see the record but not edited so that's really what [00:08:36](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h08m36s) that is all about. We are back here and we are looking at the missions so opening this permission tab, you would see that there is view edit, view edit own, view edit state, and all these have been created usually when you open this. It might [00:09:00](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h09m00s) look like that so you would set the first one and that you would see there are two options. One is core edit and one is view edit. The core edit means that you want to do a global switch. Now [00:09:27](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h09m27s) let me try and explain that by opening Component Builders options. We haven't actually looked at this yet, but it is quite important you would see that all components in Joomla you have what is called the create edit, delete edit state, edit own, it is this list of options which means that if you select this [00:09:56](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h09m56s) you know that they can't create something then it is applicable to everything in this component because it's a global setting so everything that doesn't have a view name behind it. Like this is a view name and it says access. This is a view name and it says batch use. [00:10:18](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h10m18s) But this says only batch use. So that's the global for batch use, and this is only related to this view. So you can say I am allowing them to do a batch function, but in this admin view I don't want to allow them to do a batch function. Or you could say [00:10:39](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h10m39s) you know what, I want to use inheritance. So that means I'm going to do that I want them to be able to do batch functions here and in this view. Now the reason why you can do it in two places is that you have a global switch to stop them from doing it. But you can also locally to the view tweak whether they are able to to edit do some of these features. [00:11:08](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h11m08s) So coming back to the way that you would set that up. If you don't want to have a separate control for this view In relation to whether it can edit it or whether you could change it all, view it all these possibilities. [00:11:31](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h11m31s) Then you would use core. Core would mean that you would have only this one switch and if you say deny, it will automatically deny it for that view and any other view that is using core. Or core can be seen as global when you are setting it as edit view, it means that the system will generate [00:11:55](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h11m55s) a specific list of items specially just for that view. So if you look from there to there, that is for your admin view. From there to there, is for your custom admin View. Now that means what I set up this in a Component Builder, [00:12:14](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h12m14s) I selected view edit, and then I set it in relation to each record in relation to the whole view. And I selected both so then it will implement it for both and single record and it will implemented for your global settings. Now again it might feel [00:12:34](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h12m34s) I won't blame you if what I have just tried to explain makes you feel confused, but really the only way for you to make sense of this is if you know how Joomla provisional structure works. So if you are using a Joomla website, and you have actually ever gone to articles [00:12:58](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h12m58s) and opened options and then look at their permissions, then you'd see that they only have create, edit, delete, edit state, edit own, and then these accessing of the control and this actually this big global settings. Now what we are doing, we are simply adding [00:13:17](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h13m17s) more control then only these default because the way this works in article manager you basically have one view. That view is articles. These other views known as categories is another view, but it isn't really has another component it's not really content. The content component [00:13:38](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h13m38s) And admin features is just another implementation. It's not really a whole new database. +Hi, we are looking at admin views which is the next thing to be setting up in developing your component. First we started with field types. Looking at how to setup field types or improve on them. Then we looked at how to use those field types to build basic common fields. Now we going to look at how to take those fields and add them to admin views. [00:00:34](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h00m34s) Admin views like I explained in our initial GENERAL PLANNING video, it basically forms the bedrock, the basis of your components database structure so your admin views is where your database structure is being developed. [00:00:56](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h00m56s) All your admin views which have their own table, now as we explained admin views have a single name and has a list record or a plural name. Then there is a system name and the reason why there they actually have three, is that let's say you have Want to reuse this specific admin view in another component [00:01:21](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h01m21s) with the same name but obviously adapting it to that component. The idea would be that you would then have two preachers showing up in your selection list. When you added to the component and so that might be difficult to discern which is which and so you can add the name of that specific component as part of just differentiating between [00:01:47](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h01m47s) the same names. That means you can have admin views with the same names, but with different implementation. In fact that is how you can do different version control concepts on components using the same admin view. [00:02:03](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h02m03s) Just inside of it making a few changes and in saving it so you could do that open preacher for example and in here you could say free version. This is the free version and then save as copy and then you can change the field that is linked. You can change some of the linked views. [00:02:25](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h02m25s) You can change some of your CSS, whatever other things you have done regarding this admin view, and then go to the free version of that component and link that specific one that specific view instead of the other. Anyway maybe I'm getting ahead of myself I usually do. So let's focus on admin views. Now to create a admin view. You just click new [00:02:54](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h02m54s) I'm going to open preacher again because this is the one we are using as our illustration and you would see that there should be a name for a single record. Again that is where you would edit this records so that is in this case I said preacher and then there is a list of records and that's preachers. [00:03:14](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h03m14s) Then a short description and a normal description depending on what you would like to say. Then there is a type, now the read write, and the read only, changes the components editing view. If you say read only, then it will basically limit [00:03:36](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h03m36s) the fields to not be able to edit them. If you remember the modified by field cannot be edited because it's done automatically and when it was modified is also updated as every time you click save. So this area can not be edited and that's how all the fields are going to look. [00:04:02](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h04m02s) If you select read only if you leave it on read write, it will look like this and you will be able to edit it. So that is looking at these fields. Now there is a place for an icon if you hoover over the icon it gives you the dimensions that is needed. This basically is the icon. Then when you look [00:04:24](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h04m24s) at the dashboard, these icons are the one selected there. So you can see that the icon has two of them, one is the add icon, and one is a normal icon so if you hoover here you should see the image if it is set in [00:04:46](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h04m46s) your images folder. So if you open this it goes to your image folder you select the icon. When you hoover here those images are not in this image folder, so it does not show up. And then if you going to add preachers if you going to add a field just a field called category that is of the category type, [00:05:14](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h05m14s) then you should add a category icon. Since then the system will automatically know there need to be a category setup. And it will look for category icon to use for that category and if you select a category field that is a general category for the whole component which isn't directly linked to this [00:05:37](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h05m37s) view, then it will take the first view the system will look at which view when it processes it which view is the first one and usually that would be the first one you've created and it will use the icon in that but to be on the safe side if you using one category for them all just set the same icon on them all. But if you are going to use a category [00:06:02](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h06m02s) which is primarily focused on the preachers, and you just going to put preachers and a category then you need to add a category icon here four categories now permissional switch it got to do with your accessing and updating of data. So like you can see here we have [00:06:24](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h06m24s) view edit, view edit state, view edit own, views create, admin views delete, admin view access, admin view edit version. Now this edit if it is set if you are in this managing group and it set to allowed then you can edit it. If you are a guest and it is set to deny, [00:06:49](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h06m49s) and no matter where you are in the front or the back of the site, you won't be able to edit this information even if you have a direct link. It won't allow you to edit it. Now it also has view access so somebody who might be not allowed to edit it may be allowed to view [00:07:08](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h07m08s) this content in the back end in the list view. Then it will show in the list view and they can see that it is there. Now you might think to yourself why would I ever want to do that and you see because of your custom admin views and the way that you can connect them to your admin views, which we will look at later. You might want to display the record and [00:07:32](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h07m32s) just leave an custom admin link to the data. Let me show you an example of a component that you see here, there is a button underneath the company name. So it displays the record but [00:07:53](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h07m53s) if I was like Arandis Town Council whose profile is set to being locked. If I was to click on this it will tell me that I do not have the permission to edit it, but if I was to click on this icon It actually loads the information that I looking for and [00:08:12](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h08m12s) that is the difference. The differences sometimes you want to use a custom, see this is a custom admin view and you might want to do something that is not a editing view, but a custom view and then you would like to see the record but not edited so that's really what [00:08:36](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h08m36s) that is all about. We are back here and we are looking at the missions so opening this permission tab, you would see that there is view edit, view edit own, view edit state, and all these have been created usually when you open this. It might [00:09:00](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h09m00s) look like that so you would set the first one and that you would see there are two options. One is core edit and one is view edit. The core edit means that you want to do a global switch. Now [00:09:27](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h09m27s) let me try and explain that by opening Component Builders options. We haven't actually looked at this yet, but it is quite important you would see that all components in Joomla you have what is called the create edit, delete edit state, edit own, it is this list of options which means that if you select this [00:09:56](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h09m56s) you know that they can't create something then it is applicable to everything in this component because it's a global setting so everything that doesn't have a view name behind it. Like this is a view name and it says access. This is a view name and it says batch use. [00:10:18](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h10m18s) But this says only batch use. So that's the global for batch use, and this is only related to this view. So you can say I am allowing them to do a batch function, but in this admin view I don't want to allow them to do a batch function. Or you could say [00:10:39](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h10m39s) you know what, I want to use inheritance. So that means I'm going to do that I want them to be able to do batch functions here and in this view. Now the reason why you can do it in two places is that you have a global switch to stop them from doing it. But you can also locally to the view tweak whether they are able to to edit do some of these features. [00:11:08](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h11m08s) So coming back to the way that you would set that up. If you don't want to have a separate control for this view In relation to whether it can edit it or whether you could change it all, view it all these possibilities. [00:11:31](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h11m31s) Then you would use core. Core would mean that you would have only this one switch and if you say deny, it will automatically deny it for that view and any other view that is using core. Or core can be seen as global when you are setting it as edit view, it means that the system will generate [00:11:55](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h11m55s) a specific list of items specially just for that view. So if you look from there to there, that is for your admin view. From there to there, is for your custom admin View. Now that means what I set up this in a Component Builder, [00:12:14](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h12m14s) I selected view edit, and then I set it in relation to each record in relation to the whole view. And I selected both so then it will implement it for both and single record and it will implemented for your global settings. Now again it might feel [00:12:34](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h12m34s) I won't blame you if what I have just tried to explain makes you feel confused, but really the only way for you to make sense of this is if you know how Joomla provisional structure works. So if you are using a Joomla website, and you have actually ever gone to articles [00:12:58](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h12m58s) and opened options and then look at their permissions, then you'd see that they only have create, edit, delete, edit state, edit own, and then these accessing of the control and this actually this big global settings. Now what we are doing, we are simply adding [00:13:17](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h13m17s) more control then only these default because the way this works in article manager you basically have one view. That view is articles. These other views known as categories is another view, but it isn't really has another component it's not really content. The content component [00:13:38](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h13m38s) And admin features is just another implementation. It's not really a whole new database. It's ok so the point is You only really have two well the most two views here And so when they look at options They know that if they tweak this permission they want it to be implemented For all the views related to articles Right Well with component Builder you are able to build components [00:14:06](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h14m06s) That are far bigger Then the content managing Article manager Ok I'm because of that We felt that your permissions must extend That you can target a specific view and not just all of them at once So if you want to Target a specific View You will select The View edit [00:14:27](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h14m27s) Actually this view Prefix Must be in your selection If you select Core That means you are saying I don't want to specifically target this view If I change it in the global settings which would be The ones without a view name in Front [00:14:45](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h14m45s) Everything From Here to There those are the global settings Global export Global batch global version Edit version Global create Delete [00:14:59](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h14m59s) Edit edit State now edit state is changing it from publish to unpublish those things Edit own means you might not have edit rights but he has edit own rights So that means whatever you create c can edit again In and created by is a field so can he edit created by field Or Can he edit create date field Now You'd see that This basically targets Fields that are sort of the default fields [00:15:33](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h15m33s) There is a way to Target Custom Fields Fields that were developed Outside of the default fields But that is not done in Here I'll Show you where that is done this is just controlling your default Fields and your default Features with regards to Permissions And So you would first set up these permissions make sure that you set up all of those that you want to implement [00:16:01](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h16m01s) There is a list here of those I think is most general This list might Grow with time But because we've moved The control of a single field Out of this Structure It actually means that we've made it scalable So this Permissional implementation here [00:16:22](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h16m22s) Is really only Targeting your or default fields or the fields that Already the system put in for you And the default Concepts like accessing This specific View Or deleting an item in the view or creating an item Or editing the created Field or editing the created by field [00:16:44](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h16m44s) Changing the state Edit own So those are the custom Default features If you wanna do a control on a specific field I'll show you that in a moment But That is the implementation Of permissions If you do not really Understand this I would suggest you make [00:17:05](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h17m05s) Effort To study up on Joomla's own implementation Sorry Off The promotional structure Then once you've really understood the way Joomla Handles this permissional structure Then you would have better grips on Setting up these permissions [00:17:24](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h17m24s) Per view What is done in the code if you would like to see that It's basically in the code If your ready have developed a Component You see that it sets up Your Globals This is the global now when I say Global I mean If you click on options [00:17:47](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h17m47s) let me just close this If you click on this button here options in any of the components You're going to the global settings Ok And These permissions here are Those first that I've highlighted So it all those And they have [00:18:09](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h18m09s) Links To the specific Views so there is the field View There is the Dynamic get view there is the custom admin View And you can see that they have there Related switches Ok but then there's also For each view their own Section And that causes Joomla [00:18:32](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h18m32s) to add in an item a permissional tab With switching to control the permission for this one Individual item And We have tried our very best To implement these permissions actually The way that you want might expect I can in later videos going to the code and show you exactly how This permission structure is being implemented and I think it's one of the features that makes component Builder [00:19:02](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h19m02s) Far more advanced Then other component Builders out there Is the ability to add permissional structures to your component right inside of component Builder Through This Permissional switch Ok And so we will will definitely be speaking about this permissional structure As we go along The tab structure if you look at these we call them tabs [00:19:27](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h19m27s) Settings Fields CSS JavaScript PHP my SQL Published And permissions The Publishing permissions are tabs that are built Automatically For all Backend Admin views [00:19:43](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h19m43s) Old admin views Have this permission and well the permission only if if set And Published Will always be there In published we basically bundle your Your the fields that are built Dynamically Without you having to set them I think that is what you could say [00:20:09](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h20m09s) With publishing all those Fields that you do not need to set Are always placed in Publishing And so everything else this MySQL tab here the PHP JavaScript CSS Fields and settings Are actually an example of what tabs can be Now in preacher I actually setup Two tabs 1 called [00:20:32](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h20m32s) Details And one called sermons Ok so there are two tabs in preachers So that means if you were to open the preacher Backend View First one would be called settings The second one will be called Sermons and then you'd see publishing and permission So that's how I would look Now when you create fields [00:20:53](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h20m53s) You see that there is a column here called tab And you then will select the number now the tags Are number from one to Whatever We don't start at zero or though that might have made more sense for programmers We started with One So first tab second tab And Because we are using [00:21:15](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h21m15s) A place different From the tabs we don't use the names So you need to remember that this is tab one this is tab two So when you set up a field You need to tell us in which tab Do you want a place that feel Ok So That is what this tab Number here is all about [00:21:35](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h21m35s) Now you might say but where is tab two's information because their sermons right Well Because of the fact that sermons Is an actually A table on its own If we go out here We will see that there is a Admin view called sermon And it is his own backend View [00:22:02](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h22m02s) And it has its own structure So How can I Get The sermons That is only related to this Preacher To be showing in the second tab called sermons What we created the thing called linked views now linked views is the place where this is done [00:22:25](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h22m25s) So basically I selected sermon as the view I said it should Be placed in the second tab And in child key Is preacher so if I think about sermons Which is the child Sermon is the child Preacher is the parent So you would always think of the parent as this the view in which you are the moment you are setting up the linked [00:22:49](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h22m49s) View So that If you are in preacher The parent is preacher If you are in sermons The parent is sermon So depends on in which view your busy editing And so here When we talk about the child key This would be the database field name [00:23:10](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h23m10s) That that is to be looked at And the parent Field name that should be found inside of this So when we look at preachers You would let's go back to Sermon let me quickly close this Ok we got sermon open here and if I open there this fields Well I don't need to open it here in fact let me us another place [00:23:38](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h23m38s) It is Easier to see Let's go to fields You'll see that there is a field called name Ok wait there's a field called Preacher where is it? preacher preacher next page possibly no why am I not seeing it custom there it is Sorry Ok so this is the field That we want [00:24:10](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h24m10s) Connected to With each other right So do to get The sermons that belongs to that preacher We need to get the ID of this field now that's a custom field And we said that we are gonna look at custom fields Only after explaining the admin views so I'm gonna go into detail now But I'm gonna open that field None the less And I'm gonna show you that it's name is preacher [00:24:35](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h24m35s) And because that field Will be connected to sermon it means that in the database the ID Which is the key field Is gonna be saved in preacher So that means the ID of the preacher Is saved inside of the preacher Column In the database [00:24:55](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h24m55s) now let me show you that in the database itself Ok so here I am in the database With Sermon distributor And I'm opening sermons And you'd see that we would scroll Until we see preacher And it has ID's in it And those are the ID of the Preacher's themselves So if I was to go to preacher it basically means that we are linking [00:25:24](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h25m24s) To this ID here Ok So Going back to our Linked view concept That means the child Database table In which the ID of this preacher must be Found Is in preacher [00:25:43](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h25m43s) the parent Key Would be this preachers ID And so by doing that The linked view will only show the sermons That are related to this Specific preacher And that is how the linked views can be linked If you didn't select these correctly it won't load all of them [00:26:05](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h26m05s) Ok well it won't work well So there needs to be that tight relationship Between the parent and the child View So there's also a way To actually link An array from an array So let's say [00:26:23](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h26m23s) The person is able to select more than one preacher There is a way for you to also Type that but that would all be dealt with in advanced concepts Since that is Well I could Explain some of it here but best be let me show you That would be one of the syntax to use [00:26:48](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h26m48s) But like I said Think I possibly need to deal with this in advanced concepts Because who will know to look for the answer in this video or tutorial So we'll stay with the basics here So the basic Way of linking a Another view would be to select that View From this dropdown Then say in which tab it should display Then [00:27:12](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h27m12s) What is the child's Database table in which to look What is the parents value to use to Build a relationship And then this add new button or no Is basically when you look at a let me Close this When you look at Fields here You see it has a new button [00:27:38](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h27m38s) So you can in that switch there decide whether it should Show it would not I should tell you that if you say yes And you have In that view created the correct permissional of structure for Whether somebody can create An item You can control the display of that New button [00:28:02](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h28m02s) With just setting the permission of that users specific group So if that user is in a group that doesn't have permissions to Create new items for In this example for Preachers or for sermons Then that new button will also not show up So we have that permissional wrapped Round that button's display methods Ok [00:28:26](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h28m26s) That is The tabs Just looking at the tabs That's really what we were looking at And then explaining to you The how to link other views To it To other views So that you can have the data displayed inside of each other [00:28:43](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h28m43s) Basically this feature we have here So the fact that we are busy in preachers and we are able to display the fields That are being used Well As you can imagine These fields Are linked to preachers From this column here So we are using a Repeatable field structure [00:29:05](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h29m05s) And we are able to Link Connect The field names To this View Now let me show you how I did that so I'm Looks like I'm gonna show you anyway Ok I'm opening the admin The View Which is the one we looking at [00:29:32](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h29m32s) I'm going to link two views And you see that I have there and are in the pointer And the world field So if you are Trying to connect A View to a To the From the parent An independent it is stored in at fields That's the database [00:29:54](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h29m54s) column Name so if we go to the database Go to Component Builder Admin views And we scroll You see there's add fields And if I open that You see that the way it stores it Is it stores the ID is then it stores the list [00:30:21](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h30m21s) So there's a way in which your Repeatable fields are stored by Joomla And the value that I need to look up is in field So in the repeatable field called Addfields There is a field called field And it should look for the ID of the Sorry of the Fields So it need to look in Addfields [00:30:51](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h30m51s) In the field Array For the IDs That it needs to fetch And the way you would map that in the Connect a A linked view is you would say that this is a capital R For repeatable Fields basically that is the convention to To tell the system it's a repeatable field we looking in [00:31:14](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h31m14s) And inside of the repeatable field We must look in the Field array For those ID's and they should map to the child's ID So does that make sense I hope so Because that's the way it's done And if that wasn't a repeatable field but an array You would simply say array [00:31:34](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h31m34s) And If if the array is just the values themselves you would drop off any pointer to Specific value But if it's an array with And it's actually a So if it's an associative array You would just add the name Of the associative key That it needs to look [00:32:00](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h32m00s) If it's just a normal array without Association Leave it like that So this would just tell the system it is a array And it needs to look Inside of those values for these IDs Ok so that's sort of explains the linking of an admin View To another admin View Now getting on with The Setting up of fields [00:32:28](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h32m28s) Now since we've already created the fields Beforehand You will Usually start out this way It will looks like that And the fields that you have created you would scroll down if it is a long list You just start with typing that Fields name and it will sort of bringing it up to you Then it ask you whether you [00:32:56](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h32m56s) Would like to show this field in the admin View The admin list for you And that means If you've closed Your Editing area There is a list of names here And if you want That specific field to show up in this list Then you would select [00:33:18](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h33m18s) Show If you have selected show you could tell us in which order you want this Must be the first one second one And we thought while you shouldn't do more than 100, it will look Ridiculous So you can say I want this one to show up first Now The title Alias concept in Joomla Is is quite interesting [00:33:41](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h33m41s) An obviously It's actually needed Especially if you want to do History control Or Integration with Joomla's infrastructure when it comes to their history and tagging systems You need to add A title and a Alias to all your items [00:33:59](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h33m59s) Sorry to all your views Especially if it is a view that is gonna be used in the front So in this case since we are gonna use preachers in the front to display list of preachers We most certainly gonna add a title and we gonna use the name as the title Then again back to the backend Do we want to have this sortable so Do we want this thing to be clickable there So you can click on it And it sorts the table Alphabetically [00:34:30](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h34m30s) On the basis of this table Sorry column So if you wanna have it sortable then do you want to have this Field be searchable Do you want someone to type into this box We take warehouse for example Type it in their search Do you want it to [00:34:51](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h34m51s) Show Only that Specific field So if you want them to be able to search for it You say yes Then the filter option is a tricky one You don't wanna set name to filtering because then it will show a list of all the names that already is being shown in the table you only want to use filter on things that are like a radio box or a [00:35:19](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h35m19s) Other View or You know Fields that actually are not all being displayed one after the other In the table so for our example I added let's go Go to sermon distributor and preacher I added No extra Fields there but at sermons I added preacher So there's a list of all the preachers here so I could sift and say ok I don't want to see this pictures Sermons and then it shows up only those so that is the filters and the way that you set up The filter is simply by clicking yes or no here and it will set up that that filter for you Then this link if you are setting up it custom field and you want to be able to [00:36:12](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h36m12s) In the display of the list have it clickable so I can click here and actually go to that preacher you see and then click close and then I'm back in the Sermons list view I could also click on series and all take me to the series and I can edit the Series immediately click close and take me back to the list view so if you want that Feature for the specific item then you need to tick yes here now usually we used the name as you see here to be the clickable field the title sorry If you select your title here and you click link then your Actually Telling us that this item this field item here is actually what we should use Use as the clickable option to open that actual sermon So here we'll have that actual sermon opening up and all it's related fields [00:37:16](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h37m16s) So that is the way for us to know which field should be used as the clickable field If you have a title now This concept is something that you might need to play with and since it's so easy to change it you can just click a button Here to compile your component install it look it it's behavior change it a little compile it install it Look at it's behavior by doing that you'd get a good understanding of what What happens if you change these switches here Ok now we said that we wanted the preachers name and stuff on the settings And our Tab for settings as the first have now we gonna look at the backend setup in Off where you wanna have this Fields display now there are these different Placing options left in tab right in tab full width in tab a Above tab underneath tabs left of tabs right of tabs and then [00:38:20](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h38m20s) There is the order in which it should go that means if we look at this again This is left in tab this is right in tab I think I have Another view that goes beyond some of those parameters let me go to this one And we do question So that is right off Tab not in tab you see there is an option It says Right in tab left in tab and then it says left of tabs and right Of tabs now that means that you can put it out Side of the tab area So even if I was to click here it will remain displayed right there on the side And that is to put it a right of tab know there's also a left of tab area over here [00:39:31](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h39m31s) Then a above tab is this one here that's above the tabs so it also shows all the time and And then there's underneath tab so we basically added the option of Placing data I just show you At the right in tab left in tab and then right Of right of tab and left of tab and above tab and beneath tab which is 1 2 3 4 5 6 positions in the backend of your Template and the places are being set simply by these alignment assignments here So select the field alignment inside the tab or view and you select these and Then once you've selected them let's say you've selected left in like this one above tab and you select 1 then this is the order in which you wanted to display the first this one [00:40:35](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h40m35s) Then that one left in tab this is first right in tab this one is first and then that one And full width it is a description now full width will also this will always display Under the left and right of in tab so you need to Select your left and right and then only your full width so full width his always the last Thing to show up in a tab and then here is the switch to add permissions to Is a specific values so if I was to say you know what I want the control Which group can edit the name field you simply need to click this yes and that would Add this field into the permissional structure dynamically and so that is how you You control the permissions of fields that's how you add Fields to a view and those are All the different switches now obviously you can only have one title per view and only have one [00:41:39](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h41m39s) Allias per view so you should not have more than one selected and then in any case I think the system will ignore the others but just to be safe let me tell you to set the others to know And then those that are actually the title to yes and the one that's actually the allias to yes And so we will be able to you know be sure to use the correct field values And then when you set any of these to show you should set the order of their Display here and ok so there is the filter the filter then is added dynamically by Simply clicking a yes here so if we go to sermons as an example And we click on their Fields they have many more fields which will help to illustrate some of these things And you'd see that we have sermon series and we have it set up As filter so filter is the second last column [00:42:43](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h42m43s) Sermons series let's see we said that to yes so that means we can sort this sermons by series that is how you set the filters for the backend remember this is primarily For the backend Although some of that information will relate to the front eventually especially this Permissional Swiths will be able to access it from the front if you need to But this is simply to add the fields to the actual view in the backend ok if you have any questions About this please give me a heads up if you feel like haven't done a good enough job explaining this then Let me know and I'll redo this video so that's adding fields To the admin views there are much more things to explain here and I think the only thing I'll still Cover in this tutorial is the actual conditions this is an amazing feature [00:43:47](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h43m47s) Which goes beyond Joomla's control on the show on attribute per Field remember we looked at the show on attribute and the show on attribute can be control can control which Fields to show when you are clicking on other fields so for example here we have a field called Add JavaScript if I click yes it opens this area Java Script where I can add custom scripting now that behavior are being is being controlled By this condition structure and the condition structure for sermons Are the following if you can see there is a few already being set so what we will As we are first decide which field are we targeting which field do we want to Show or hide that's the behaviour do you wanna show a field or hide a field now most of the [00:44:51](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h44m51s) Time we'll use show show means it'll be hidden unless these criteria's are met So show is the one I use the most and I think most will use that mostly now here is the The list of all the fields in your system now you might say why don't you just show the fields that I've selected As part Of this view and unfortunately that feature isn't Place yet so you need to remember Which Fields you selected in the fields area and so for our purposes It's these Fields and you need to remember their names and then Then when you go to the conditions when you type a field like name You need to know oh it's this one that's how you would link to them now I've Build on option for files is a field and I wanted to show Now this isolate and chain function is a concept which I believe would [00:45:55](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h45m55s) be best explained when you think about that not Only one field must start sorry be Used to show the other one but more than one field so in this case Dropbox Auto note in sermons should not only show when fields Source is Dropbox but also when built option is automatic So that both of these should be true before it shows The the Dropbox note and so you would select the field You want to control obviously you can control more than one at a time but the logic behind this Might not always work so you need to try it tested if it doesn't work come and tweak this until you you find it working in behaving the way you expect so most of the times [00:46:59](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h46m59s) You would only link one field to one validation But as soon as you have multiple Fields you use the chain option so it's either isolate like This one to build option of files should show when file source is Dropbox than it's Isolated it isn't connected to any of the other settings here as soon as you click chain It means any other field that has this any other row is a row that has this field selected as well we'll be chained together so that it must be both being validated as true before it actually will show the field so here let's look at it It says file source and you can select any of these if it if if you know that this file File this sorry file source is a list then you can look at ok this is a list and see the List options so this is only for text and it says that only for text Fields only for text fields [00:48:03](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h48m03s) If it's only for text fields only for text fields only for text fields this is only for list and radio and check Boxes and dynamic lists this is only for list radio and checkboxes this is only for list radio and checkboxes So and then you can say is or is not Sorry if it is Dropbox then it should show if it Is not Dropbox then it should show that is the the logic behind it Now here this one is when you're dealing with a dynamic list unfortunately with dynamic List it's quite difficult to set these values since they are dynamic And so the best way to deal with a dynamic would possibly be to leave this blank So that means that if any of the values are selected show show this item We will still look at Dynamic or custom fields [00:49:07](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h49m07s) Sorry Dynamic list all custom Fields and we will explain to you how to set up those custom Fields but that is basically what that option is for Most of the time we are using this is and we are when you select that specific Field and show you so if I select file source So you would select let's do that again if it if it is If the field that you've selected he's a text field the system will show you that by saying Keywords or length so you can say I want if he has put in a Length of 2 characters then show so then you take keywords away so So then that that's how you can use the text field now now you would Change this to [00:50:11](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h50m11s) Active that is active and that it has a length of 2 That's how that that's what that would mean you if you know that what you've selected is a list it will show you the list But show you all the values and then you can remove the values that you don't want to use And the only value that's really important is that 2 the other side just for you so You could even just leave 2 that will be the same as that we are just showing you in in fact what I do is I explode the string at the pipe and I only use the first value to develop the The JavaScript in fact the Java Script that is being written we are in the sermons view Let me show you that so we would go to Component Builder admin components Sermon distributor modules [00:51:15](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h51m15s) Forms and then you'd see there are two there's a XML which is the fields And then there is a js which is actually the Java Script so we open that and here's All the JavaScript that component Builder would build now if we look at this let's go there It's only these permissions sorry these A conditions ok so these are the conditions it's not even that long of a list But to implement these conditions component builder builds this JavaScript so it starts up here and all of this JavaScript is the Implementation of those things that we set there All the way down to there ok so that means about 500 lines of JavaScript gets written by component builder just by these switches [00:52:19](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h52m19s) That you set up here now I'm showing you Where the script is being written so did once you've set up these switches you can come into this Script and if you remember the field name that you are working with So for example let's look at it build option is the field and files source So let's look if we can find that here There is source ok so it gets the value When the page is ready it checks the jform on this called source What is the value in it puts it in here and our first function obviously I'm using A random function name generator as you can see and it's Start with V and the next one would be VW and so on and so on and [00:53:23](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h53m23s) Ok so that means you need to now to see how we implement this function hiding and Showing of the source you would search for the V function by just adding a bracket there and search ok so it's the first function And I'm basically saying is it set if it's set Then I I add a source constructor and if it's a In array is this an array checking the value whether it's in array If it's not an array I put it into a temporary array here we go let me see There we push it into the temporal array And if it is an array and it isn't set we just create a blank array then We do a validation here and again this you can go check [00:54:27](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h54m27s) So basically the function is that one So let's check that function and all that function does is it checks is it 2 If it's 2 it returns true if it's not 2 it returns false so you see it's quite simple And the value whether true or false is returned to source we put source into if its true then we close that View Sorry we get the closest class called Control group and we check is this field required if it's required and these are some homeworks that we do now if it's false then we hide it And there's also if it's required we do some house cleaning so that is simply Quick looking at the code which is being generated just by this one switch [00:55:31](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h55m31s) This is not the only code there is another place and that is in the view itself so we can go to view and then preacher no wait we are looking at sermon Then template and edit and then from around Here we have JavaScript again and again of a we have on Keyup for source or on change because I'm not at the system doesn't know is this a text field or Or is this a list field or what is it so we have these two check function on it and also Let me see There is another place where source is gonna be used for another Functions just focusing on this one and so it gets the value and it runs That Function Which is in our JavaScript file so here's the JavaScript file there is the function so it's reusing the same Function [00:56:35](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h56m35s) The moment that there is a key up or a change on that specific field so That's what I've done obviously other developers who are more advanced in JavaScript than I am get's Involved I could show them where in component builder The Script is being generated and we can Improve this dramatically I am not that good at JavaScript and in fact I I feel like a Most probably a little bit resource-intensive here but this is the best I could do so far and obviously if we can improve it and if you know how to improve this then you Welcome to get involved and GitHub and start with a discussion on improving this infrastructure I can tell you that this infrastructure is done in the compiler of course and I can show you exactly on which line This was developed you know built In fact all you need to do is when you compile your component just a if we [00:57:39](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h57m39s) Go back to components close this Ok here we're inside a component all you need to do to know where that is being built it's just tick this to yes And then it will add in the in the comments it will add a line Line reference of where that specific script is being built ok Let's go back to the admin views we're not really finished so this is Structure that you can use to actually manipulate the conditions upon which field should show or not show And I I really think we have done a very good implementation here It gives you so much of its possibilities of structuring and training and Working with fields in its relationships if you want to not use this and just Use the on show then that is also gonna work just as well if fact I think it will work better the only problem on [00:58:43](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h58m43s) Show is that it doesn't actually provide the ability to target as A text field like we have here where you can add a keyword and say OK if they if it types in his for example then immediately this other field will show up which is it Excellent feature I mean I don't think you can get that kind of intricacy with With the show on option and furthermore It cannot look at multiple other fields If they have certain values and if it evaluates true then only show the other field Those kind of controls are not yet available in the show on implementation as far as I know and Yes I possibly would like to get involved on the get repo of Joomla and see If we can add these nice features but for now we have add them to Component Builder And in component builder you can implement these and we are writing the JavaScript to manage this [00:59:47](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h59m47s) For you ok so that is your conditions for fields So we've looked at all of these the next one is basically the list of the fields that you have already selected and click save you will show a list of all the fields that you've selected again any of those Fields if you wanna update them you could just click on the field name in all take you to the field and you can update it The Next tab is a place for you to add custom CSS that is just related to the specific View so you can add CSS here which is for the edit view or the Single View and you can add CSS here which is for the listview or the Multiple views plural and then it will be Placed in his prospective places the same goes with the JavaScript accept that you have four Places to Target instead of just one if remember we when we looked at the way that we are [01:00:51](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=01h00m51s) The building the JavaScript there is a file a JavaScript file which just has JavaScript For the view and then there is the footer area which is under the HTML and PHP At the end of the file there is a whole area which is just JavaScript at the footer of the file And so we decided to add the option of adding JavaScript to the file Or JavaScript to the footer of the view or the file sorry the view file or the view footer or Views file or the views footer so it just gives you the option of targeting You now listen this script can run is a function and I just wanted to be able to be on the page Then you add it to the file and then if you wanna use the function you can add it to the footer that it's up to you Ok then there is a PHP area and here you have the option of adding Adding JavaScript to your editing View [01:01:55](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=01h01m55s) Primarily so if we look at editing views the moment you click on Add JavaScript it opens a tab and now the way that we want to implement Ajax is Primarily Via the controller and method implementation So if I explain that to you the component has a controller called Ajax Dot Json PHP you can open there Then it has a model But we just called Ajax ok so you have a controller and you have a model now the controller is Like the gatekeeper he first does a few checks and balances to ensure that the data is Correct that that the token is right that if you have set this to be [01:02:59](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=01h02m59s) Validating whether he is a user then it also checks that there's a user ID If you have said it that it doesn't require them to be a user it basically would drop off this validation I will show you that in a moment so that you can follow me there is a controller area and then there's some model area and the model is Basically a place where you can write a method Which is queried from the controller so you can see in the controller it basically is getting the Ajax model and then it is querying a method in that model called Dropbox so here We are querying the Dropbox method and it's getting the view Name there it seems that I'm I'm not even really using it just make sure the moment I'm not in [01:04:03](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=01h04m03s) Even using this variable but it's none the less it is here and I possibly will use it later If it becomes necessary so I'm basically just activating this method to run And when this method runs it Triggers some Global methods to run and On the return of that value it Triggers another local method so again I'm not Trying to teach you PHP here all I want to show us that this part of The code was custom written so if we go back to our component you'd see that there is that code So when you click on Ajax you add that name Basically writing a method make sure that it's set to public and your write your method in here and in the in Ajax input you would say ok listen that the Task name is check Dropbox this thing the values I want to pass it is view and [01:05:07](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=01h05m07s) Type and both of them are integers and it Needs to run the view needs to run a Dropbox method And the type needs to run an update dropbox and both of them should check wither it is a user so only users can fire This back end methods and the You can see that you have control to tick that Obviously the Filters are The same as with Any field that you can select [01:05:45](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=01h05m45s) And so integer here would be fine and if there's no value you said nil This task name Is what you be using in your JavaScript So I first wanted to show you the PSP side And then the task name itself ok so let's just Make sure I do not miscommunicate here The method name is set here And that should correspond [01:06:07](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=01h06m07s) To the method That you set up in your Ajax method PHP Ajax method Which is possibly the method in which model the data, get the data Structure the data and give it back to the Ajax call So you return the data Inside of this method But in your JavaScript you will be using the task name to [01:06:29](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=01h06m29s) To get to the System So if we go to the JavaScript close out go JavaScript What it seems I used the JavaScript example which is gonna get Way ahead of us But Since we started Let me not leave you and mid air So I like I'll have to close out here [01:07:00](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=01h07m00s) And I'm going Quite ahead of myself now but I need to otherwise you'll feel very lost In summer distributor Which is the component to which that view belongs There is a place called Scripts And I have added a feature Which is called Chronic Global [01:07:23](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=01h07m23s) Events So I have added a feature To add Global events Now Global events or the way I am implementing it Is simply an event that should run every time A page opens Anytime any page in the system opens I wanted it to run the global event Now the way I target it is I say load Dropbox Ajax [01:07:50](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=01h07m50s) Ok It's a global event and it Needs to do that And The Drop Box Ajax Is basically Set up in the Helper class So I have a helper class Which is called load Dropbox Ajax and it gets the document object [01:08:11](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=01h08m11s) it takes the job document object it adds a script declaration to it And here is the JavaScript That it is adding And you see That in that it is using check Dropbox listing As the Task So it's targeting The Ajax [01:08:32](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=01h08m32s) Controller And asking for check Dropbox listing As the task And it's passing to it A token And the view name So possibly we would like to use that View ID later to log from which area this automated [01:08:52](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=01h08m52s) Feature mostly gets Triggered I'm not doing that as yet So This is just what the script will do So there is j Query Which only fired after page is loaded And at the moment it's just adding a dummy 3 in there to just trigger the method [01:09:10](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=01h09m10s) And so That is really how this script ends up on the page and I'm sorry that I used that as an example I realise it's A little bit Ahead of ourselves But Nonetheless I I want to Not leave it at a loose end So I Redoing it actually for you [01:09:32](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=01h09m32s) That is where this PHP Script really gonna be used So since I need to add this somewhere I just selected a view and that to Advantage it to this sermon view And I added the Ajax control the concepts here But the actual JavaScript that fires off all this Is set to the global Event and that means every time a back end Area is opened In this component [01:10:00](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=01h10m00s) It loads that JavaScript to the view And a JavaScript execute Ajax request which starts updating the Dropbox listing Now I'm not gonna explain all of that Dropbox listening to you now it's a quite an advance concept But it's basically Sermon distributor is able to link two Dropbox sermons Oh sorry a media inside of a shared Dropbox folder And this whole method here that be looking at [01:10:28](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=01h10m28s) Parses that Dropbox folder every so often To make sure that it's To date That's what it's all about So that is just looking at adding Ajax You can see that If you know The Joomla API You know that it has a get item [01:10:45](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=01h10m45s) Method It has a get items method in the In the model So in the model there's a get item method In the editing model and in the list model there is a get items method Then there's a get list query in the Jay model list And there is a safe method There's a post safe method In the in the controller Is allowed at [01:11:10](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=01h11m10s) Edit method There's a batch copy method There's a batch move method there's a script before edit Sorry before delete Method There's a script After delete And these are all PHP places in which you can dump custom scripting So you wanna in the safe method Now [01:11:32](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=01h11m32s) Obviously again You need to know where the safe method is It is so if I would open Sermon here Scroll down Ok so there's the get item So you can add custom scripting to the get item method and if I Scroll down There's the batch That's copy [01:12:06](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=01h12m06s) batchmove There is a safe method And so if we go back here and we click on the safe method It says here That should run PHP year that should run in the safe method And then You have the data it's a array And it's called [01:12:27](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=01h12m27s) Data So If you look here It means You're able to Target that Value The gets placed into Save Ok And I am sure that your custom [01:12:47](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=01h12m47s) Value Code Will be placed in before the parents saved But if you do not If you do not know in any of those Custom scripts Where that code will be set What you can do is just type It is [01:13:06](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=01h13m06s) Loaded Here And then compile save it and compile the component and then go look at the code And you see where it is showing up And then you can add Ok I've got all these values already In the script Because all that component builder is gonna do it's just gonna Let's say It will just say [01:13:37](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=01h13m37s) That's that's how it will look It'll just add to string so when the component itself runs it will treated as code This is a comment but I mean if it was code You just execute So it is the way for you to add custom scripting Right into your component Almost anywhere really You are able to Target Through these switches The post save hook [01:14:05](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=01h14m05s) Is actually in the controller not in the model So You go to the controller Sermon Scroll to the bottom And you see there is a post save hook And it basically gives you the model and it gives you the valid data and you can Actually can perform extra features on it [01:14:27](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=01h14m27s) But in all these things You you should just read the description here it says PHP here that should run in the post Save hook method And there's the object model is the data model Object and the erased validator is the validator So if you just read our little note here Then you can start coding For it Ok That is so adding custom scripting To the view [01:14:55](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=01h14m55s) Basically the list view as well as the Each View And then the MySQL dump area Which we looked at earlier You can do two kinds of dumps now What is this used mostly for Well what I found while I was Busy developing That I would be Busy setting up a component [01:15:15](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=01h15m15s) and install it and then add dummy data to it to see if it works And then every time I make a change And I uninstall that component and install the new one Because whatever change it made to the database Won't be You're not added to the database via an update You need to uninstall the component and install it again To get the database back to where you want it And so the only way I could do save myself [01:15:43](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=01h15m43s) Time Is to actually say listen I'm gonna Re-install this component and the dummy data for sermons I would like to retain And so I would go table and I Open the tables it will show me a list of all the Tables that are in the database at that moment And then I would scroll to sermon the Sermon table click on it [01:16:06](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=01h16m06s) And it will load The table and What it should be called In the data set Here is some explanation if you want to do Other tables so let's say you wanna have it mapped to multiple tables then this is the explanation on how to Do that I would not recommend doing this because possibly You will not get [01:16:29](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=01h16m29s) What you expect And so Just going with the values that it populates for you will Possibly your best call Unless those values change And if you are making changes adding new fields You must realise that you need to come and reset this by clicking on something else And then clicking on it again And that it loads the new [01:16:57](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=01h16m57s) list of Fields that are related to this table To this Back end view Table And that way When you compile the component then component builder will actually grab the data From the database and build a dump file for you Now that is one way of doing it [01:17:18](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=01h17m18s) I might be a little bit complex but it is saved Tons of hours The other way would be to just do a dump file itself So you'd go to Your Your MySQL you would open the specific let's Use this thing that is Smaller Field types [01:17:40](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=01h17m40s) And you click on Export And then you would select A sequel format And click go And this will create a dump file Of all the data in the table And you can basically Paste that dump file in here Now [01:18:17](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=01h18m17s) I was looking at Important So you click export click quick Then SQL and then Go And then just save it Then Go to that file Open it And having it open [01:18:41](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=01h18m41s) You just replace This String With Hash Underscore So and then replace all And you will not use the table Structure because that is already in component builder You just use [01:19:03](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=01h19m03s) This area here Basically you would copy this Area like That Cut Come here paste And click save And that will mean that you have to dump file And it will always be added [01:19:36](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=01h19m36s) To your new Install If a dump file is way too big You will see it by just after your clicked save come and look At the end And see if it cut it off somewhere So let's say it cut it off there that I know my dumb file is To big for the use [01:20:04](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=01h20m04s) Structure For your dump File I used medium text let's see medium text Here Prosafe There it is Sequel I used medium text [01:20:39](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=01h20m39s) So that means It's quite big You can really put a lot of Text inside of it You wanna know exactly how much just Google it and you will see I'm gonna remove this obviously because It's not related to sermons at all And [01:20:57](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=01h20m57s) In fact I'm not even go to use the dump here, save and close Ok That is basically setting up an admin View I know I've run around and it seemed quite hectic And I possibly will redo this video at a certain stage Try to be Structured But I think it is informative enough [01:21:20](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=01h21m20s) And if you Have any questions please email me and I will Try to communicate with you And if I see that a certain question comes up often enough I will add it to the Video Possibly redoing Specific area [01:21:35](https://www.youtube.com/watch?v=CdSKSCTzmRA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=01h21m35s) Admin views is quite intense And we will possibly revisit many of the Concepts that we have looked at today Thank you for watching