Updated 4a. JCB Demo Component Directory, Folders and Files (markdown)
@@ -317,10 +317,10 @@ This Tweak to the Dynamic Get in JCB for the Demo component site view looks Dyna
|
||||
Doing the above also ensures only certain actions are allowed for certain users. In our case, a Registered User should only be allowed to Save, Save and Close, and Close when done editing their own look records. Super Administrators by default are allowed all actions on the admin view. Performing the previous instructions also restricts a Registered user's actions to allow only Save, Save and Close, and Close the previous instructions. If you add more permissions, more actions will be allowed such as save and copy. Experiment with the JCB Demo component Joomla! ACL permissions and you can see the effect on what edit buttons appear since components do not need to be compiled using JCB to change these settings.
|
||||
|
||||
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 view as seen in the form statement:
|
||||
<form action="/comdemo/index.php?option=com_demo&view=looks&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.
|
||||
* 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.
|
||||
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.
|
||||
|
||||
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.
|
||||
* 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.
|
||||
|
Reference in New Issue
Block a user