在Moodle网站的首页上显示最新消息和即将发生的事件

时间:2013-02-21 16:51:11

标签: moodle

我是moodle的新手,我正在为moodle网站开发一个主题。我必须在首页旁边显示三个方框。一个框将显示即将发生的事件,另一个框将显示最新消息。我注意到最新消息和即将发生的事件在内页中正确显示,但我不知道如何在首页上显示这些框。我正在使用moodle 2.3.3。任何帮助将不胜感激。

1 个答案:

答案 0 :(得分:0)

您可以使用Moodle的HTML编辑器将您的代码添加到首页的“摘要”中。

如果你对php和html感到满意,你应该将你的盒子直接添加到你的Moodle主题的frontpage.php中(/theme/*your_current_theme*/layout/frontpage.php)。

编辑你的frontpage.php,它可能如下所示:

<!-- start of moodle content -->
        <div id="page-content">
            <div id="region-main-box">
                <div id="region-post-box">

                    <!-- main mandatory content of the moodle page  -->
                    <div id="region-main-wrap">
                        <div id="region-main">
                            <div class="region-content">
                                <?php echo $OUTPUT->main_content() ?>

                                HERE IS THE PLACE TO ADD BOXES.

                            </div>
                        </div>
                    </div>
                    <!-- end of main mandatory content of the moodle page -->
相关问题