new page in course

new page in course

sterk jim發表於
Number of replies: 1

hi all,

I just write my first blocks and it's fine in a course page.

now i want to add a new page with "hello world" in the middle of this page, and all blocks from the course on left and rigth side.

the problem is my page have any blocks except navigation block.

So in my block i have a link to a newfile.php


in this file i have :


require_once('../../config.php');

require_login($course, true, $cm);

$PAGE->set_title('My modules page title');

$PAGE->set_heading('Links');

$PAGE->set_pagelayout('course');

echo $OUTPUT->header();

echo "Hello World";

echo $OUTPUT->footer();


what i have missed to add all configured blocks (on left and right side) of my orign course


thanks for any help

評比平均分數: -
In reply to sterk jim

Re: new page in course

sterk jim發表於
Maybe i can résolve my problem By restoring all blocks offre à course?  But no idea how to do that.....