更新时间:2023-11-30 14:08:16
您可能需要将此添加到 /blocks/yourblockname/block_yourblockname.php
中的 class block_yourblockname
You might need to add this to class block_yourblockname
in /blocks/yourblockname/block_yourblockname.php
function applicable_formats() {
return array('all' => true);
}
适用格式限制块,因此它只出现在某些页面上.
Applicable formats restricts the block so it only appears on certain pages.
https://docs.moodle.org/dev/Blocks#Authorized_Personnel_Only