From ebaacf242e314afac7f97ebbc3927e4ec58a815d Mon Sep 17 00:00:00 2001 From: Joseph Geller Date: Thu, 27 Sep 2018 09:56:08 -0500 Subject: [PATCH] Updated 4a. JCB Demo Component Directory, Folders and Files (markdown) --- ...mo-Component-Directory,-Folders-and-Files.md | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/4a.-JCB-Demo-Component-Directory,-Folders-and-Files.md b/4a.-JCB-Demo-Component-Directory,-Folders-and-Files.md index 59b9223..cbf5e68 100644 --- a/4a.-JCB-Demo-Component-Directory,-Folders-and-Files.md +++ b/4a.-JCB-Demo-Component-Directory,-Folders-and-Files.md @@ -324,11 +324,11 @@ The filter allows them to edit only their own look records in the demo_look tabl * Save and Close * Close buttons -If you add more permissions, more actions and hence more buttons will be allowed such as save and copy. Change the JCB Demo component Joomla! ACL permissions and you can see the effect on what edit buttons appear immediately since components do not need to be compiled by JCB for these settings to change. +If you add more permissions, more actions and hence more buttons will be allowed such as Save and Copy. Change the JCB Demo component Joomla! ACL permissions and you can see the effect on what edit buttons appear immediately since components do not need to be compiled by JCB for these settings to change. Continuing with the edit functionality: -* Edit the look record in the demo_look table. It is important you understand this is reusing the admin look edit look at the form tag in the source of the page using your browser (Chrome - Developer tools). -* The registered user id of the logged in user must match the created_by value for it to display. +* Edit the look record in the demo_look table. It is important you understand this is reusing the admin view look, edit look. You can see this in the form tag located in the source of the page. Use a browser tool such as Chrome, Developer tools to do this. +* The registered user id of the logged in user must match the created_by value for it to display and allow the user to edit the record. By default, the JCB demo allows all user types except public and guest user groups to view all looks, either they created them or not. To restrict the looks to the specific user, besides the changes to the Joomla! ACL, one must filter the look records in the demo_looks table by owner id. Note, these will take effect without compiling the JCB Demo and other components built using it. The reason is the Joomla! ACL or the global options permissions of the JCB Demo component are being changed for Joomla!'s Registered User Group and not individual permissions within the JCB component. The latter allows for granularity by changing the Joomla! * First, login as the registered user and select the looks option from the main menu. @@ -390,13 +390,4 @@ Next, we look at demo.php in the root of the JCB Demo component directory and st - Perform the request task. Initially, this is the default. [Perform the request task.](https://api.joomla.org/cms-2.5/classes/JFactory.html) [Get the request.](https://docs.joomla.org/Retrieving_request_data_using_JInput) -- Redirect if set by the controller - -## \administrator\components\com_demo\controllers\demo.php -Placeholder text. -## \administrator\components\com_demo\controllers\import.php -Placeholder text. -## \administrator\components\com_demo\controllers\look.php -Placeholder text. -## \administrator\components\com_demo\controllers\looks.php -Placeholder text. \ No newline at end of file +- Redirect if set by the controller. \ No newline at end of file