When I am trying to save the initial page with some answers underneath, nothing happens. The page is saved but the content disappears.
Am I doing something wrong?
I hope that someone can help me
Tormod
Whell, it has been my same trouble since I started to use Moodle (1.3.3). I am using 16 Mb and I am facing the same situation. Please, anyone, help! Actually you can face the problem ignoring the first page (specially if you want the first page is a Navigation Page type. You can't change the type of this first page (which has no type: page with questions , end of branch or navigation page).
if (!isteacher($course->id)) { error("Only teachers can look at this page"); } $timenow = time(); $form = data_submitted(); /// <<<<<<< THIS LINE SHOULD BE FIXED !!!! if ($form->pageid) { // the new page is not the first page
if (!isteacher($course->id)) {
error("Only teachers can look at this page");
}
$timenow = time();
if($_POST['pageid']){ // <<<<<< THIS if BLOCK REPLACES THE LINE
// in most cases assume new page (not the first one) being inserted
// using mod/lesson/lesson.php (this script)
$form = data_submitted();
} else {
// this is the first page being inserted using mod/lesson/view.php
$form = data_submitted("$CFG->wwwroot/mod/lesson/view.php");
}
if ($form->pageid) {
// the new page is not the first page