Aquesta pàgina forma part de la documentació de Moodle en català, tot i que no ha estat traduïda encara. Podeu contribuir obertament a les tasques de traducció. Podeu consultar la Guia d'edició de la documentació i també participar ens els debats del fòrum de traductors de la documentació a moodle.org

Broken/Patching forms tutorial

De MoodleDocs
La revisió el 14:31, 8 juny 2008 per Gary Anderson (discussió | contribucions) (Start of page for patching forms)
(dif.) ← Versió més antiga | Versió actual (dif.) | Versió més nova → (dif.)
Salta a:navegació, cerca

by Gary Anderson

One of the easiest local modifications that an institution can make to customize their Moodle site is to make simple modifications to the form elements that appear on pages. This tutorial will demonstrate how to do such modifications including changing default values, hiding elements so they are not available to users, and setting elements to "advanced" so that the user sees it only if they click on the "show advanced" button.

Warning

Making custom changes to the PHP scripting code in Moodle should be done carefully. You should always test your code before using it on your production site and should backup the original scripts. You should always comment your code so you know what has been changed.

Having said that, these patches are among the simplest and the recovery from an error is easy: simply replace the file with original from the core distribution.

Moodle Forms Overview

Changing defaults

Hiding fields

==Setting fields to "Advanced""