From 0aa0ec69a4317e2d75e9dbc029c49e3288febd55 Mon Sep 17 00:00:00 2001 From: Amigo <49749100+aamigo@users.noreply.github.com> Date: Mon, 29 Jul 2019 10:28:17 +0200 Subject: [PATCH] Updated 038 Setup Site Edit View in JCB (markdown) --- 038-Setup-Site-Edit-View-in-JCB.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/038-Setup-Site-Edit-View-in-JCB.md b/038-Setup-Site-Edit-View-in-JCB.md index 8224585..1a5363a 100644 --- a/038-Setup-Site-Edit-View-in-JCB.md +++ b/038-Setup-Site-Edit-View-in-JCB.md @@ -2,11 +2,15 @@ ### Adding Admin View To Front-End Site -Hi. I'd like to quickly give you a tutorial on how to add an admin view to the front end of your site. There can be editing and submission of the front end of this specific admin view. To illustrate this, I'm going to use the public version of JCB, it has this demo version in it. First I'll compile it and install it to the local Joomla website. We can see what happens. Install it, open it. Here we have the demo version that is publicly available and it has a admin view called "Looks". [00:01:07](https://www.youtube.com/watch?v=tmB22d9dQ4M&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h01m07s) If you go to the list view of the admin view, called Looks, you see there is none, we will create new. There is a description box in the new view. A more item, where you can click, and see some custom fields: email, mobile phone, date of birth, image, website. And your normal publish, permission, structure for the view, [00:01:37](https://www.youtube.com/watch?v=tmB22d9dQ4M&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h01m37s) and the name field. Now that's what I referred to as the admin view. It's this combination of fields working together in one view. +[00:00:00](https://www.youtube.com/watch?v=tmB22d9dQ4M&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h00m00s) + +How to add an Admin View to the front end of your site. There can be editing and submission of the front end of this specific Admin View. The public version of JCB is being used to illustrate this, it has this Demo Version in it. First it is compiled and installed to the local Joomla website. Install it, open it. Here is the demo version that is publicly available and it has a Admin View called "Looks". [00:01:07](https://www.youtube.com/watch?v=tmB22d9dQ4M&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h01m07s) If you go to the List View of the Admin View, called 'Looks', there is none. Create 'New'. There is a description box in the New view. A 'More' item, where you can click, and see some custom fields: 'email', 'mobile phone', 'date of birth', 'image', 'website' and the normal Publish, Permission, Structure for the view, and the name field. Now that is what has been referred to as the Admin view. It is this combination of fields working together in one view. ### How To Add Editing Area -Now what I will show you is how to add editing area, these three tabs to the front end of your site that it will function like a form. Who you would allowed to access the form will depend upon the permissions structure. You will see the permission structure is what [00:02:14](https://www.youtube.com/watch?v=tmB22d9dQ4M&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h02m14s) controls, who can edit and who can add items to a specific admin view. Currently as you can see your public cannot edit this, if we created an item they cannot edit it. There's an item level on permissions. If I close out then you'll see in options there is also a global control on permissions. The global control of permissions [00:02:46](https://www.youtube.com/watch?v=tmB22d9dQ4M&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h02m46s) is also, if you want public to be able to submit to this form, you need to allow them to be able to create. You would say allow, and the public is allowed to create. You will see that most components has more than one view. This one has only one it's called look. So you'll also have to over here(look create) [00:03:13](https://www.youtube.com/watch?v=tmB22d9dQ4M&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h03m13s) say allow, and if you want them to edit existing submissions. There is the edit state, edit own, created by, all these things in the global spec, as well as in the local edit of the view. +[00:01:50](https://www.youtube.com/watch?v=tmB22d9dQ4M&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h01m50s) + +How to add a editing area, (these three tabs to the front end of the site) that it will function like a form. Who will be allowed to access the form will depend upon the permissions structure. The permission structure controls who can edit and who can add items to a specific Admin view. [00:02:14](https://www.youtube.com/watch?v=tmB22d9dQ4M&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h02m14s) Currently the public cannot edit this, if an item is created they cannot edit it. There is an item level on permissions. If it is closed then it can be seen there is also a 'Global' control on permissions in 'Options'. The Global control of permissions is also, if you want public to be able to submit to this form, it is necessary to allow them to be able to create.[00:02:46](https://www.youtube.com/watch?v=tmB22d9dQ4M&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h02m46s) Set it to 'Allow', and the public is allowed to create. Most components has more than one view. This one has only one; it is called 'Look'. Over here('Look create') say allow, and if you want them to edit existing submissions. [00:03:13](https://www.youtube.com/watch?v=tmB22d9dQ4M&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h03m13s)There is the 'Edit state', 'Edit own', 'Created by', all these things in the global spec, as well as in the local edit of the view. <<<<<< ### Two Switches