Give a Backend User Group File Access
You may want Backend users to be able to upload files that can be linked to on your website or included in web pages. To do this, users need to be given access to a portion of the fileadmin directories. Here is the process to give a Backend user account file access.
Select a Backend User and the User Group to Modify
- Click on "User Admin" at the left.
- Scroll down to the bottom of the page and click on the pencil icon to the right of the user that needs access.
- Under Group, click on the plus sign to the right of the list of items to add a new group.
- Under "Group" and "Selected" click on a Backend user group to modify. Then click the pencil icon to the right of the "Item" list.
Add a New File Mount
- On the "Backend usergroup" form, scroll way down to "File Mounts." A file mount is a location in the directories that your website can access. File mounts are usually in the fileadmin directory. A file mount can give a Backend user access to the files and directories defined by the file mount.
- Click on the plus sign to the right of the "File Mounts" field to add a file mount. Note: There may be other file mounts already defined and in the list.
- On the "Filemount" form, under "LABEL" enter a descriptive name for the file mount.
- Under "Path," enter the name of a directory in the fileadmin directory. Do not add a leading or trailing slash.
- Click on "relative ../fileadmin/" to set the path starting in the fileadmin directory. You can also choose an absolute path. If you use the absolute path then you must fill in the entire path to the directory in the "PATH" field. In Lunix, it might look something like this:
/home/username/public_html/fileadmin/about_us
Add the Ability to List Files to the Menu
- On the "Backend usergroup" form, scroll down to "Modules."
- Hold down control and click on "File" and "File>Filelist" to add the file list options to the user's menu.
- Scroll down to near the bottom of the form and see that "File Mounts" now contains the new file mount and that the file mount is highlighted. Over time, you will probably add many file mounts. You can hold control down and select as many as you would like the user to have access to.
- Scroll to the bottom of the form and click the "Save and Exit" button to save changes made to this Backend user group.
Check and Set the Backend User Settings
- Scroll down and under Under "Mount from Groups" ensure that "File Mounts" is checked so the user will receive the file mounts from the Backend user group. If this field is unchecked then the user will not receive any file mounts from the groups assigned at the top of this form.
- Under "Mount from Groups" ensure that "File Mounts" is checked so the user will receive the file mounts from the Backend user group. If this field is unchecked then the user will not receive any file mounts from the groups assigned at the top of this form.
- Under "File Mounts," the new file mount could have been added here instead of the group. The only difference is that changes to file mounts entered here apply to only this user, but changes to the group apply to this user and any user that is in the Backend user group.
- Under "Fileoperations permissions" choose from these options. Choose "File: Upload..." to allow normal file operations. Most users need this capability. Choose "Files: Unzip" to allow the user to unzip an uploaded zip file. This is useful for uploading several files at once in a zip file. Choose "Directory: Move..." to allow the user to perform directory operations. Uncheck this if you do not want the user to modify directories. Choose "Directory: Copy" to allow the user to copy entire directories with the contents. Choose "Directory" Delete..." To allow users to delete a directory and all its contents. Typically, check the first three options. The remaining two options are for more technical users and can cause more problems if the user makes a mistake.
- Click the "Save and Exit" icon to save the Backend user settings.
Check the Results
- On the "User Admin" form, click on the red "SU" icon to the right of the user.
- Notice that the user now has a "Filelist" option under the "File" heading. Click on "Filelist."
- Click on the name of the mount point to show the contents of this directory.
- This directory is empty because it is new. Click the "Upload Files" button to begin the process of uploading a file to this directory.
- Click the "Browse" button to browse for a file on the local hard drive.
- Select a local graphics file and confirm the selection.
- Click on "Upload files" to upload the file.
- The new file is uploaded to the directory. Now click on "Page" at the left.
- To add the graphic to a page, click on the page name in the page tree.
- Click on the text you want to change in the page.
- Click on the "Insert Picture" icon in the rich text editor.
- In the popup window, select the directory where the file is located.
- Click on the filename.
- The new image is now inserted on the page. Click the "Save and Exit" button to save the change. This demonstrates that the user now has the ability to upload and then use files in pages.