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
No edit summary
m (cat edit)
 
(19 intermediate revisions by 4 users not shown)
Line 1: Line 1:
The Layout Course Editing module is a [https://docs.moodle.org/en/Category:Modules_%28non-standard%29 non-standard module] for Moodle 1.5 and 1.6 versions. It is a javascript based script that will quickly and graphically move, add and remove activities and blocks in course edit mode.
==Course Layout Editor==
==Course Layout Editor==
__NOTOC__
* allows graphical (quick) editing of course layout
** move activities and sections around with javascript
** add activities from other courses
** move , add, delete activities and sideblocks


* 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  
* make a backup copy of the course/format/... that you wish to patch  
* unzip layout2.zip in that format folder  
* unzip layout2.zip in that format folder  
Line 19: Line 25:


==Installation==
==Installation==
 
# download from http://moodle.org/mod/data/view.php?d=13&rid=491
# 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. 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.
# 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  (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.


     Change:
     Change:
Line 32: Line 40:
     /// Start main column
     /// Start main column
     echo '<td id="middle-column">';
     echo '<td id="middle-column">';
     $extra = '';
     $extra = "";
     if (isediting($course->id)) {
     if (isediting($course->id)) {
         href="'.$CFG->wwwroot.'/course/layout/layout.php?id='.$course->id.'">'.
        $extra = ' &nbsp; <a title="'.get_string('layout','layout').'"
        get_string('layout','layout').'</a>';
         href="'.$CFG->wwwroot.'/course/layout/layout.php?id='.$course->id.'">'.get_string('layout','layout').'</a>';
     }
     }
     print_heading_block(get_string('weeklyoutline').$extra, 'outline');
     print_heading_block(get_string('weeklyoutline').$extra, 'outline');
'''note:''' if you are using "topics" or "social", change the''' get_string''' parameter in the line above to the same as in the original line


==Using this Feature==
==Using this Feature==
* A link to the course layout editor will appear once editing has been turned on.
* 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.
* 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.
[[Category:Contributed code]]

Latest revision as of 15:10, 15 February 2008

The Layout Course Editing module is a non-standard module for Moodle 1.5 and 1.6 versions. It is a javascript based script that will quickly and graphically move, add and remove activities and blocks in course edit mode.

Course Layout Editor

  • allows graphical (quick) editing of course layout
    • move activities and sections around with javascript
    • add activities from other courses
    • move , add, delete activities and sideblocks
  • 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. download from http://moodle.org/mod/data/view.php?d=13&rid=491
  2. Unzip this file at the root folder of moodle source code
  3. You will next need to MANUALLY add a link within your existing course formats to allow for the layout editor to be enabled.
  4. edit course/format/whatever/format.php (or to skip this part, see tip at bottom of this page)
  5. 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)) {
       $extra = '   <a title="'.get_string('layout','layout').'"
       href="'.$CFG->wwwroot.'/course/layout/layout.php?id='.$course->id.'">'.get_string('layout','layout').'</a>';
   }
   print_heading_block(get_string('weeklyoutline').$extra, 'outline');

note: if you are using "topics" or "social", change the get_string parameter in the line above to the same as in the original line

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.