New Lessons component: "Add Resources Folder listing"

Description

Add new page element to the Lessons tool which allows you to embed folders and their contents on to a Lessons page. This should replicate the functionality of the CK Edit widget, ie, should have the same UI configurations options and the same display.

Attachments

6

Activity

Harish.Parasuraman1 December 1, 2017 at 12:46 PM

Step 1: Add Resources Folder
Step 2: Select cc-objects (3 files) under the folder Discussion 1 SMPL1011-2 (2 files)       ----  The file cc-objects get downloaded by selecting the file
Step 3: Check the Lessons Page
Step 4: Displays as in the .png file  - the root folder doesn't get displayed on the lessons page which doesn't say from where the file was borught in.
Step 5: When "Reorder" is clicked, the resources folder doesn't get displayed in the list - Known issue - 

Please find the 2 attachments. 1st attachment: when export-errors is selected under Discussion 1 SMPL1011-2.png

2nd attachment: the rootfolder is not displayed in the lessons page.png

Thanks

Harish

Nick Wilson March 22, 2017 at 7:45 AM

Reopening this to add some config to turn it on or off.

Nick Wilson March 22, 2017 at 5:25 AM

From Core Team call, there needs to be added a Spanish translation and a config property.

Nick Wilson March 1, 2017 at 3:22 AM

Here are the things we wanted to do but decided not to do (at this point before the sakai 12 cut off):

9. "Select folder page":when selecting the folder to display, I think the idea of placing a background colour behind the selected folder and any files contained therein is good but yellow is an odd colour, use the standard grey highlight that is used when one places the mouse over a regular lessons component.
10. "Select folder page":when selecting the folder to display, the component inherits "font-size: 13px" and "font-family: Verdana, sans-serif" from ul.jqueryFileTree - it shouldnt, removing these means that the listing will match the rest of the page
11. "Display folder contents page":When the folder listing has been placed on the page, I dont think the file names should be highlighted in blue. Remove the blue highlight
12. "Display folder contents page":On the lessons page the component inherits "font-size: 13px" and "font-family: Verdana, sans-serif" from ul.jqueryFileTree - it shouldnt, removing the these means that the listing will match the rest of the page
13. "Select folder page":Files and folders should be underlined in the regular lessons style
14. "Display folder contents page":When the folder listing has been placed on the page, files and folders should be underlined in the lessons style
15. "Display folder contents page":the reading list icon is wrong, not sure what it should be though - it's not that important!
16. When you go back in the folder isn't selected that you had selected. (find folder path in Java, and match it in js and expand it all.)
17. "Select folder page":when selecting the folder to display the idea of highlighting files in blue is not good - this highlighting should be removed completely and replaced with the standard grey which should cover the same width on the page as the yellow currently does (once a folder has been selected).

Nick Wilson March 1, 2017 at 3:21 AM
Edited

Here are the things I've changed so far:

1. Rebase, resolving conflicts.
2. The h2 "Adding files or folder to: " is poorly worded; change to "Embed folder listing"
3. "Choose your folder" should NOT be h3, it should be in a <p> and should be replaced by "Choose a folder to embed, clicking on a file will allow you to preview the contents."
4. Include the title of the folder selected above its contents to make clear that the user selected the folder (the same way that Add Web Content Link works in Resources).
5. "Display folder contents page": Make sure it's wide enough to show all the files . A default file called new_document.txt does not get fully shown.
6. You should really see '/<top_level_folder>/' in the input field at all times like ELfinder.
7. Add in 'Prerequisites' (referred to in Chuck's comment in the PR)
8. The top level folder should be selected and shown in the input box when you first go there.

Fixed

Details

Priority

Affects versions

Fix versions

Components

Assignee

Reporter

Environment

Windows 8 , Google Chrome

Created December 1, 2015 at 8:49 AM
Updated July 27, 2018 at 9:58 AM
Resolved March 22, 2017 at 9:05 AM