local:tabbedquickform:technique

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

local:tabbedquickform:technique [2016/08/05 20:57] – créée adminlocal:tabbedquickform:technique [2026/11/13 21:59] (Version actuelle) – modification externe 127.0.0.1
Ligne 1: Ligne 1:
-===== Guide technique ===== +<html><!-- nomoodle --></html>{{ :blocks:logo-apl.png?nolink |}}<html><!-- /nomoodle --></html>
-===== Formulaires à onglets =====+
  
-==== Capacités ==== 
  
-   * **local/tabbedquickform:canswitchfeatured :** les utilisateurs ayant cette capacité peuvent basculer entre les différents modes de formulaires.+===== Tabbed forms: Technical guide =====
  
-[[:local:tabbedquickform|Revenir au sommaire du composant]] +==== Capabilities ==== 
 + 
 +   * **local/tabbedquickform:canswitchfeatured:** users with this capability can switch between the different form modes. 
 + 
 +==== Component limits ==== 
 + 
 +Technical note: This component requires JQuery so that filtering and tab activation work correctly. Some Moodle pages may not load JQuery. Integrating the quickTabbedForm into an "upstream" library does not fix this problem.  
 + 
 +=== Solution 1: === 
 + 
 +Disable the renderer on the page type concerned. 
 + 
 +   * Note the offending page type 
 +   * Go to the global configuration of the "Tabbed forms" local plugin 
 +   * Add the page type to the pages excluded from form processing 
 + 
 +=== Solution 2: === 
 + 
 +Add an instruction 
 + 
 +    $PAGE->requires->jquery(); 
 + 
 +to the page concerned, using a "customscripts" technique or an appropriate patch technique.  
 + 
 +=== Solution 3: === 
 + 
 +Integrate the above instruction into an override of the "core" renderer in the theme in use, in a redefinition of the "header" function. 
 + 
 +   class theme_mytheme_core_renderer extends core_renderer { 
 +      ... 
 +      public function header() { 
 +          global $PAGE; 
 +    
 +          $PAGE->requires->jquery(); 
 +          return parent::header(); 
 +      }  
 +    
 +      ... 
 +   } 
 + 
 +=== Solution 4: === 
 + 
 +In the theme's lib.php file, implement the page pre-initialisation function:  
 + 
 +   function theme_mytheme_page_init(moodle_page $page) { 
 +       $page->requires->jquery(); 
 +   } 
 + 
 +--------------- 
 +<html><!-- nomoodle --></html> 
 +[[:local:tabbedquickform|Back to the component summary]] - [[:plugins|Plugins index]] - [[:start|Back to catalogue]] 
 +<html><!-- /nomoodle --></html>
local/tabbedquickform/technique.1470423471.txt.gz · Dernière modification : (modification externe)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki