Course contents block: Difference between revisions
David Mudrak (talk | contribs) m (link to a similar block) |
David Mudrak (talk | contribs) (Installation instructions) |
||
Line 4: | Line 4: | ||
[[Image:course-contents-block-screenshot.png|thumb|The topic title is automatically extracted from the section summary|400px|left]] | [[Image:course-contents-block-screenshot.png|thumb|The topic title is automatically extracted from the section summary|400px|left]] | ||
<br clear="both" /> | |||
==Installation== | |||
* Moodle 1.9 - checkout [[CVS for Administrators|CVS]] HEAD branch or download [http://download.moodle.org/plugins/blocks/course_contents.zip the daily build] | |||
The source codes of the module live in [[CVS for Administrators|CVS]] [http://cvs.moodle.org/contrib/plugins/blocks/course_contents/ contrib/plugins/blocks/course_contents]. To checkout the module, go to the Moodle blocks/ directory and use: | |||
cvs -z3 -d:ext:myusername@cvs.moodle.org:/cvsroot/moodle co -d course_contents contrib/plugins/blocks/course_contents | |||
==See also== | |||
* [http://moodle.org/mod/data/view.php?d=13&rid=2156 Modules and plugins database record] | |||
[[Category:Blocks]] | [[Category:Blocks]] |
Revision as of 22:02, 17 February 2009
Course contents block is similar to the Simple navigation block. It simply produces a list of all visible topic/week in your course. Clicking at one of these links will display that particular week or topic.
The block automatically extracts a suitable title for every week or topic from the section summary. If you start summary with a heading (H1, H2, H3, etc), it will use such heading text. If your summary starts with a bold text, it will be used as a section title. If the summary consists of several paragraphs, the first one will be used. If the summary is empty, a customizable text "Unit X" (where X is the number) is displayed. Technically spoken, the plain text content of the first non-empty HTML DOM node from the section summary is used as the summary title.
Installation
- Moodle 1.9 - checkout CVS HEAD branch or download the daily build
The source codes of the module live in CVS contrib/plugins/blocks/course_contents. To checkout the module, go to the Moodle blocks/ directory and use:
cvs -z3 -d:ext:myusername@cvs.moodle.org:/cvsroot/moodle co -d course_contents contrib/plugins/blocks/course_contents