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

Joseph Geller
2018-09-27 06:00:54 -05:00
parent 7aff3b93d5
commit 409c7b109f

@@ -318,13 +318,12 @@ Doing the above also ensures only certain actions are allowed for certain users.
Continuing with the edit functionality:
* Edit the look record in the demo_look table, reusing the adminForm form to do so
<form action="/comdemo/index.php?option=com_demo&amp;view=looks&amp;Itemid=104" method="post" name="adminForm" id="adminForm">
This line is inserted by JCB during compilation and loads the same looks view used in the admin area to add looks into the demo_look table.
<form action="/comdemo/index.php?option=com_demo&amp;view=looks&amp;Itemid=104" method="post" name="adminForm" id="adminForm"> must be changed. This line is inserted by JCB during compilation and loads the same looks view used in the admin area to add looks into the demo_look table.
* The registered user id of the logged in user must match the created_by value for it to display.
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. Allowing the following actions in JCB admin, EDThe following accomplishes this. Note, these will take effect without compiling the JCB Demo and other components built using it since it is the Joomla! ACL or the global options permissions of the demo component being changed for Joomla!'s the Registered User Group and not individual permissions within the JCB component which allows for granularity using the Joomla! ACL once again on children of the parent.
* 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.
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. Allowing the following actions in JCB admin, EDThe following accomplishes this. Note, these will take effect without compiling the JCB Demo and other components built using it since it is the Joomla! ACL or the global options permissions of the demo component being changed for Joomla!'s the Registered User Group and not individual permissions within the JCB component which allows for granularity using the Joomla! ACL once again on children of the parent.
* 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