Note: You are currently viewing documentation for Moodle 2.3. Up-to-date documentation for the latest stable version is available here: Layout course editing.

Layout course editing

From MoodleDocs
Revision as of 19:39, 11 September 2006 by Bruno Vernier (talk | contribs)

Course Layout Editor

  • download layout2.zip (add url here) Tim posted it on sept 11 in the moodle forums
  • make a backup copy of the course/format/... that you wish to patch
  • unzip layout2.zip in that format folder
  • copy back the format.php from the backup'd folder
  • make the suggested patch in the README provided
  • a new link should appear when in "course edit" mode pointing to layout.php
  • Timothy Takemoto reports that it works fine in moodle 1.6 (although it is unchanged from moodle 1.5)


todo: package in standard manner and upload in standard spot on moodle server, and include appropriate credits and licence notice

Layout Editor Version 1.6a

  • Created by Audun Hauge, modified by Timothy Takemoto and packaged by Bruno Vernier (c) GPL 2005-2006
    • note: there are at least 2 minor forks of the original version for moodle 1.5
    • Bruno attempted to merge them for moodle 1.6 into this package
    • please let him have any new patches at bruno.vernier@gmail.com

Installation

  1. Unzip this file at the root folder of moodle source code
  2. You will next need to MANUALLY add a link within your existing course formats to allow for the layout editor to be enabled. For this example we have added it to the weeks format. Look for the commented line /// Start main column and adjust it to appear as shown below.
   Change:
   /// Start main column

echo '';

   print_heading_block(get_string('weeklyoutline'), 'outline');


   To:
   /// Start main column

echo '';

   $extra = ;
   if (isediting($course->id)) {
       href="'.$CFG->wwwroot.'/course/layout/layout.php?id='.$course->id.'">'.
       get_string('layout','layout').'</a>';
   }
   print_heading_block(get_string('weeklyoutline').$extra, 'outline');

Using this Feature

  • A link to the course layout editor will appear once editing has been turned on.
  • The editor provides a simple to use click and drag interface to allow for a quick and simple adjustment of moodle course design and flow.