Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在 Moodle.s 的父块内创建几个块有办法手动创建块实例???
或者
通过添加一些 html 等来修改块内容,使其看起来像一个块。
据我所知,Moodle 不支持嵌套块。另一方面,拥有它可能没有意义,因为“块”是一个定义良好的独立实体,嵌入了一些非常简单的逻辑。
您可能想要做的是创建一个新块并使用 from 函数weblib.php在其中创建您需要的图形元素。如果你需要更复杂的东西,你可能需要一个“模块”(在 Moodle 术语中)。
weblib.php