Updated 4a. JCB Demo Component Directory, Folders and Files (markdown)

Joseph Geller
2018-09-27 10:48:14 -05:00
parent 6c9d5a14be
commit d40ea98663

@@ -302,8 +302,7 @@ Registered Users can:
Editing the Admin View - System Name Look - Settings - Permission Implementation - Settings
Only if you add permissions here will this view have permissions. [Please watch this tutorial](https://youtu.be/CdSKSCTzmRA?list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=6m19score.edit) for more info.
By default, the site view looks is not authorized for any user besides the Super Administrator although it displays on the main menu after logging in to a Registered User and above. If access is given in Joomla!'s ACL to the JCB Demo component for the Registered Group of Joomla! users, the view will display after logging in as a Registered User. For this to happen, the Joomla! ACL must allow access to the component as follows using:
Admin area main menu option:
By default, the site view looks is not authorized for any user besides the Super Administrator although it displays on the main menu after logging in to a Registered User and above. If access is given in Joomla!'s ACL to the JCB Demo component for the Registered Group of Joomla! users, the view will display after logging in as a Registered User. For this to happen, the Joomla! ACL must allow access to the component as follows using the admin area main menu option:
Components - Demo - Looks - Options - Permissions tab - Registered
* Looking (Site) Access Allowed
@@ -313,8 +312,9 @@ Components - Demo - Looks - Options - Permissions tab - Registered
The first option only allows access to the site. The view will display a look but that's all. The second allows access and therefore all looks will display and can be accessed (but not edited) as long as the third access is also granted. The fourth allows editing the look if the user's id matches the one in the look_demo table. More details about the Joomla! ACL on this can be seen in [this video](https://www.youtube.com/watch?v=gWjQjdhYqXI&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&index=36).
Be sure you add a filter using the admin area of the site, main menu option, Selecting the Components, Component Builder, Dynamic Gets, Looks, Tweak option:
Be sure to add a filter using the admin area of the site, main menu option by selecting:
Components - Component Builder - Dynamic Gets - Looks - Tweak
* Where Table Key a.created_by equal = $this->user->id
This Tweak to the Dynamic Get in JCB for the Demo component site view looks, Dynamic Get, getListQuery, extends it to only include records from the table that were created by the user having the same id as the current user. This is available from the site view looks, $this variable, user id form element. The change takes effect once you use JCB to compile the component and install it again using the Joomla! extension installer. The same Tweak is required in the site view looking Dynamic Get, getItem.
@@ -325,6 +325,7 @@ Doing the above also ensures only certain actions are allowed for certain users.
* Close
The filter allows them to edit only their own look records in the demo_look table. Login to the site area as a Super Administrator to see all records in the admin view. Performing the previous instructions also restricts a Registered User's actions to display only the following buttons in the looking view:
* Save
* Save and Close
* Close buttons
@@ -339,16 +340,16 @@ By default, the JCB demo allows all user types except public and guest user grou
* First, login as the registered user and select the looks option from the main menu.
* The site view looks displays with the Name and Description of the registered user's look and an edit toolbar underneath.
* Click the edit toolbar and display the admin view look, displaying only the form actions defined for that user group.
Save
Save and Close
Close
The, click the edit toolbar and display the admin view look, displaying only the form actions defined for that user group.
* The More button was enabled in the JCB demo
This allows entry of the additional fields on the form.
* Save
* Save and Close
* Close
It's source is located in JCB:
The More button was enabled in the JCB demo to allow entry of additional fields on the form.
The code to do this is located in JCB:
Custom Script
Add PHP (after getting the items)*
Yes