Hello,
Sorry if my question is stupid but I cannot understand the information in the documentation:
I have created a php file as a local plug-in at /moodle/local/student_progression_report
Which displays certain information about the student.
I would like to create an expandible content container so that certain sections of the student's information are collapsed by default, but they can be expanded. I found the code attach in W3 Schools.
I am not sure of how I have to add jquery from the information in Moodle.org:
http://docs.moodle.org/dev/jQuery#jQuery_UI_in_add-on_activity_module
Do I need to add these lines at the beginning of the php file?
$PAGE->requires->jquery();
$PAGE->requires->jquery_plugin('ui');
$PAGE->requires->jquery_plugin('ui-css');
Do I need to place physical the jquery file in any folder of Moodle?
Thank you very much for your advice.
Mari Cruz
__________________________________________________________________
</head>
<body>
<div data-role="page" id="pageone">
<div data-role="header">
<h1>Expanded Collapsible Blocks</h1>
</div>
<div data-role="main" class="ui-content">
<div data-role="collapsible" data-collapsed="false">
<h1>Click me - I'm collapsible!</h1>
<p>I'm now expanded by default.</p>
</div>
</div>
</body>