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: Difference between revisions

From MoodleDocs
Line 22: Line 22:
# Unzip this file at the root folder of moodle source code
# Unzip this file at the root folder of moodle source code
# You will next need to MANUALLY add a link within your existing course formats to allow for the layout editor to be enabled.  
# You will next need to MANUALLY add a link within your existing course formats to allow for the layout editor to be enabled.  
# edit course/format/'''whatever'''/format.php  
# edit course/format/'''whatever'''/format.php   (or to skip this part, see tip at bottom of this page)
# Look for the commented line '''/// Start main column''' and adjust it to appear as shown below.
# Look for the commented line '''/// Start main column''' and adjust it to appear as shown below.



Revision as of 20:02, 11 September 2006

Course Layout Editor

  • download from http://moodle.org/mod/data/view.php?d=13&rid=49
  • 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.
  3. edit course/format/whatever/format.php (or to skip this part, see tip at bottom of this page)
  4. 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.
  • if you don't want to make the patch above, just create a bookmark like this:
    • (URL to your moodle site)/course/layout/layout.php?id=(course id number)
  • 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.