local:tabbedquickform:userguide
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Prochaine révision | Révision précédente | ||
| local:tabbedquickform:userguide [2016/08/05 19:18] – créée admin | local:tabbedquickform:userguide [2025/12/10 16:16] (Version actuelle) – modification externe 127.0.0.1 | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| - | ===== Guide d' | + | ===== User guide ===== |
| - | Le composant " | + | The TabbedQuickform plugin transforms radically moodle by: |
| - | | + | |
| - | | + | |
| - | ==== Pour l' | + | ==== For the non admin users ==== |
| - | L' | + | Using this plugin is almost transparent for those users. Users will be proposed the forms in a similar view/ |
| - | ==== Pour un administrateur ==== | + | If users are allowed to, users might have an additional " |
| - | Les administrateurs de site ont une tâche un peu plus complexe qui celle de choisir le filtrage qui sera apporté dans les différents formulaires de Moodle pour proposer un usage plus simple de la plate-forme. Il est fortement conseillé que cet " | + | ==== For an administrator ==== |
| - | * Soit réalisé de manière concertée avec les usagers | + | Administrators will have more implication in the process as they will drive the simplification effort of Moodle. Administrators can run across the whole platform and choose to mask and setup some relevant defaults for most of the form items. This cleanup should in any case: |
| - | * Soit précédé d'une enquête d' | + | |
| - | * Soit éventuellement précédé d'un audit des données permettant de constater le non usage des fonctionnalités par la population utilisatrice. | + | |
| - | === Basculement en mode " | + | * Be performed by admins unilaterally before the users come in. |
| + | * Be performed bilaterally with users representants after users started to use the platform. | ||
| + | * Eventually follow a survey that will examine what users really will not use. | ||
| + | * Or eventually following a data inquiry to check tracks of disinterest. | ||
| - | === Masquage/ | + | === Switching on forms configuration mode === |
| - | Le masquage démasquage des champs doit être réalisé avec précaution. Certains champs peuvent être liés à d' | + | {{ : |
| - | En général, il est conseillé de bien étudier une fonctionnalité et de repérer l' | + | - Form configuration mode switch button |
| + | - Form mode switch button | ||
| - | Les hypothèses de simplification doivent donc être étudiées avec soin, faire l' | + | === Masking / unmasking fields === |
| - | === Utiliser le fichier de configuration | + | Once in form configuration |
| - | Le système de filtrage étant intégré comme un plufin, les décisions de masquage prises par les administrateurs ont été implémentées comme des clefs de configuration du plugin local_tabbedquickform. De ce fait la règle qui permet une configuration forcée par le fichier de configuration config.php à la racine de Moodle s' | + | Usually, it will be preferable to carefully study a feature and check all the parameters and variables that may affect it so we may mask them all. Note that sometime, some parameters may affect other features or settings that are in other components and forms. |
| - | Il suffit alors de connaître la matrice qui génère les clefs de configuration lorsqu' | + | Simplifying Moodle should be thus done carefully, and be experimented with a test population to check for side effects. |
| - | $CFG-> | + | {{ : |
| - | '< | + | |
| - | La clef de masque est composée comme suit : | + | - Switch back to normal mode button |
| + | - Masking switchs | ||
| - | * Le préfixe ' | + | === Do the configuration mode allow setting default values for hidden parameter? === |
| - | * L'ID de page Moodle transformé (ex : site_login_index pour le type site-login-index) | + | |
| - | * Un séparateur ' | + | |
| - | * L' | + | |
| - | Exemple | + | Yes, for most of them. Most of the simplest widgets such as text, checkboxes, radios and select will store the actual value in the masking preferences. This will override system defaults even if the feature implements explicit defaults in settings. Complex widgets such as multiple fields or complex groups or conditional fields may be not correctly preset by defaults. |
| + | |||
| + | To store a preset default value while in form configuration mode, just change the current value BEFORE hidding the field. The default will be stored at the moment the mask button is switched on. | ||
| + | |||
| + | === How do i know a form can be simplified? === | ||
| + | |||
| + | When in administrator mode, you will see the " | ||
| + | |||
| + | === Why can't some forms be simplified? === | ||
| + | |||
| + | This plugin only can process QuickForm forms, which is the actual common development standard for building Moodle forms. In spite of this common practices, and due to some restrictions in layout or complexity of implementation, | ||
| + | |||
| + | === What's up if i see two form configuration buttons on the same page? === | ||
| + | |||
| + | this can happen if two or more QuickForm instances are displayed on the same screen. In most cases, all forms may be simplified. In some rare cases, form fields might share the same identifier and a key collision might happen. In that case would both fields be masked at the same time. | ||
| + | |||
| + | === Using the config.php file to force a complete site setup === | ||
| + | |||
| + | The form filtering system is built as a moodle local plugin. All activated masks are stored as configuration keys of the local_tabbedquickform plugin. Thus the general rules allowing forcing plugin settings values in config.php applies. | ||
| + | |||
| + | All you need to know is how the plugin setting key is build when recording a form mask: | ||
| + | |||
| + | $CFG-> | ||
| + | '< | ||
| + | |||
| + | the settings mask key is: | ||
| + | |||
| + | * the ' | ||
| + | * the current page ID with some transform (e.g.: site_login_index for page type site-login-index) | ||
| + | * a separator ' | ||
| + | * The quickformform element identifier (the accessible ID of the " | ||
| + | |||
| + | Example: | ||
| mask_page_course_edit_id_idnumber | mask_page_course_edit_id_idnumber | ||
| + | [[: | ||
local/tabbedquickform/userguide.1470424696.txt.gz · Dernière modification : (modification externe)
