官术网_书友最值得收藏!

  • Moodle 2.0 First Look
  • Mary Cooch
  • 288字
  • 2021-04-13 17:07:31

Adding a block to a course category page

Suppose we would like to make an information block on the page that lists our courses in the Miscellaneous category? We want to put general information there about the courses, but we don't want it cluttering up the courses themselves; nor do we need it in any other category pages? Note that you'd need appropriate permissions to edit this page; a regular teacher wouldn't be able to add to a course category page.

To achieve this, we start at our Miscellaneous course category page, which for us is: http://www........../ course/category.php?id=1

  1. Turn on the editing on the …course/category/php?id=1 (or whichever) page, and choose HTML from the add a block drop-down menu.
  2. Click the configuration (hand/pen) icon.
  3. Add information to the HTML editor in the normal way you would for any HTML block.
  4. In the settings that follow, choose the options shown in the next screenshot:
    Adding a block to a course category page
  5. Page contexts: Here you can choose whether to display this information block on the category page or on other related pages (the course pages).
    Adding a block to a course category page
  6. Restrict to these page types: Choose precisely which sections you wish the information block to appear on.
    Adding a block to a course category page
  7. Default region/weight: Decide yourself which side (right or left) you want the block to be displayed and in which order of importance. Our calendar is 10; so it will currently display top right; if this block is 9; it will be directly beneath the calendar.
  8. Save the changes.

A user, logged in or not, coming to this page now will see this extra information block. The following screenshot shows our student Emma's view. Once she goes into a course, however, because of the way we set it up, the block is no longer there.

Adding a block to a course category page
主站蜘蛛池模板: 兴海县| 贵州省| 海盐县| 翼城县| 咸阳市| 新野县| 土默特右旗| 逊克县| 图们市| 福泉市| 清水河县| 柳州市| 祁连县| 故城县| 舟山市| 邵东县| 沂南县| 淮滨县| 应城市| 聊城市| 永丰县| 常德市| 水富县| 崇州市| 秭归县| 宁国市| 库伦旗| 军事| 澄江县| 凤台县| 布尔津县| 长汀县| 大荔县| 天等县| 鄂尔多斯市| 临湘市| 景谷| 安丘市| 洞头县| 宣威市| 定边县|