【问题标题】:Displaying latest news and upcoming events on the front page of Moodle site在 Moodle 网站首页显示最新消息和即将发生的事件
【发布时间】:2013-03-07 17:06:50
【问题描述】:

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

【问题讨论】:

    标签: moodle


    【解决方案1】:

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

    如果您对 php 和 html 感到满意,则应将框从您的 Moodle 主题 (/theme/*your_current_theme*/layout/frontpage.php) 直接添加到 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 -->
    

    【讨论】:

    • 感谢您的帮助。我想水平添加三个框,我认为这段代码会垂直添加框,我无法通过 css 处理这些框。
    • 你必须使用
      来玩 css 浮点数。否则,如果你仍然对 css 有问题,你可以构建一个 html 表。
    猜你喜欢
    • 2016-04-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-07-23
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多