Uploaded image for project: 'OpenOLAT'
  1. OpenOLAT
  2. OO-1162

Create subfolder for single page content

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 10.1.2
    • Component/s: Course
    • Labels:
      None

      Description

      Problem
      In single page course elements users can choose to link from existing files from the course folder or to upload a file or to create a new html page.

      In the last two cases, the files are created/uploaded in the root directory of the course folder. When adding images and other media in the html editor, those are uploaded to the same level as the html file, in this case also to the root of the course folder.

      Which quickly leads to a big mess in the course folder.

      Solution
      The solution is to automatically create a folder when uploading a file to the course element or when creating a new html page. In that folder, the file is added and media files added later on via the HTML editor are also put into that folder.

      E.g. when creating a file "info.html", the final structure in the course folder looks like this:

      coursefolder/info/info.html
      

      Care must be taken when a folder name does already exist. In that case the standard renaming service should be used (FileUtils.rename())

      coursefolder/info/some_already_existing_file.html
      coursefolder/info2/info.html
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dfurrer Dirk Furrer
                Reporter:
                gnaegi Florian Gn├Ągi
                Tester:
                Kirsten Scherer
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 4 hours
                  4h
                  Remaining:
                  0m
                  Logged:
                  Time Not Required
                  Not Specified