mod:customlabel

Différences

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

Lien vers cette vue comparative

Prochaine révision
Révision précédente
mod:customlabel [2017/02/26 14:15] – external edit 127.0.0.1mod:customlabel [2025/12/10 16:16] (Version actuelle) – modification externe 127.0.0.1
Ligne 1: Ligne 1:
-===== Course elements =====+<html><!-- nomoodle --></html>{{ :mod:logo-apl.png?nolink |}}<html><!-- /nomoodle --></html> 
 + 
 +===== Course elements  =====
  
    * **Component type:** Activity module    * **Component type:** Activity module
    * **Name:** Customlabels (course elements)    * **Name:** Customlabels (course elements)
-   * **Versions:** 1.9, 2.2 à 3.+   * **Versions:** :M27: to :M36: 
-   * **Distribution:** Public +   * **Old versions:** 1.9, 2.2 à 2.6 
-   * **Disponibilité:** Stable.+   * **Distribution:** Public and PRO 
 +   * **Availability:** Stable.
    * **Repository:** [[https://github.com/vfremaux/moodle-mod_customlabel]]    * **Repository:** [[https://github.com/vfremaux/moodle-mod_customlabel]]
    * **Unit tests:** [[https://travis-ci.org/vfremaux/moodle-mod_customlabel/branches]]    * **Unit tests:** [[https://travis-ci.org/vfremaux/moodle-mod_customlabel/branches]]
-   * **Distributors:** [[http://www.activeprolearn.com|Activeprolearn SAS]] (worldwide), [[http://www.edunao.com|Edunao SAS]] (Moodle Partner - french speaking area)+   * **Distributors:** [[http://www.activeprolearn.com|Activeprolearn SAS]] (worldwide)-<html><!-- nomoodle --></html> 
 +   (Edunao Moodle Partner - french speaking area)<html><!-- /nomoodle --></html>
  
 [[:plugins:supportpolicy|Important : read our plugin support policy]] [[:plugins:supportpolicy|Important : read our plugin support policy]]
Ligne 25: Ligne 29:
 ====Exemple ====  ====Exemple ==== 
  
-[[mod:customlabels:contactpoint]].+[[mod:customlabel:contactpoint]].
  
-{{ :mod:customlabels:element-cours-pt-contact.png?nolink |}}+{{ :mod:customlabel:element-cours-pt-contact.png?nolink |}}
  
 //Nota : student vue of the course element.// //Nota : student vue of the course element.//
Ligne 44: Ligne 48:
 ==== Guides ==== ==== Guides ====
  
-  * [[:Mod:CustomLabels:InstallGuide|Installation Guide]] +  * [[:Mod:CustomLabel:InstallGuide|Installation Guide]] 
-  * [[:Mod:CustomLabels:UserGuide|User guide]] +  * [[:Mod:CustomLabel:UserGuide|User guide]] 
-  * [[:Mod:CustomLabels:Integratorguide|Integration Guide]] +  * [[:Mod:CustomLabel:Integratorguide|Integration Guide]] 
-  * [[:Mod:CustomLabels:Technique|Technical Guide]]+  * [[:Mod:CustomLabel:Technique|Technical Guide]]
  
  
Ligne 53: Ligne 57:
 ==== Builds ==== ==== Builds ====
  
-2.7 2.8 2.9 3.0 3.1 3.2 +:M27: :M28: :M29: :M30: :M31: :M32: ^ :M33: ^ :M34: 
-| <html><img src="https://travis-ci.org/vfremaux/moodle-mod_customlabel.svg?branch=MOODLE_27_STABLE"></html> | <html><img src="https://travis-ci.org/vfremaux/moodle-mod_customlabel.svg?branch=MOODLE_28_STABLE"></html> | <html><img src="https://travis-ci.org/vfremaux/moodle-mod_customlabel.svg?branch=MOODLE_29_STABLE"></html> | <html><img src="https://travis-ci.org/vfremaux/moodle-mod_customlabel.svg?branch=MOODLE_30_STABLE"></html> | <html><img src="https://travis-ci.org/vfremaux/moodle-mod_customlabel.svg?branch=MOODLE_31_STABLE"></html> | <html><img src="https://travis-ci.org/vfremaux/moodle-mod_customlabel.svg?branch=MOODLE_32_STABLE"></html> |+| <html><img src="https://travis-ci.org/vfremaux/moodle-mod_customlabel.svg?branch=MOODLE_27_STABLE"></html> | <html><img src="https://travis-ci.org/vfremaux/moodle-mod_customlabel.svg?branch=MOODLE_28_STABLE"></html> | <html><img src="https://travis-ci.org/vfremaux/moodle-mod_customlabel.svg?branch=MOODLE_29_STABLE"></html> | <html><img src="https://travis-ci.org/vfremaux/moodle-mod_customlabel.svg?branch=MOODLE_30_STABLE"></html> | <html><img src="https://travis-ci.org/vfremaux/moodle-mod_customlabel.svg?branch=MOODLE_31_STABLE"></html> | <html><img src="https://travis-ci.org/vfremaux/moodle-mod_customlabel.svg?branch=MOODLE_32_STABLE"></html> | <html><img src="https://travis-ci.org/vfremaux/moodle-mod_customlabel.svg?branch=MOODLE_33_STABLE"></html> | <html><img src="https://travis-ci.org/vfremaux/moodle-mod_customlabel.svg?branch=MOODLE_34_STABLE"></html> |
  
 [[https://travis-ci.org/vfremaux/moodle-mod_customlabel/branches|Travis-ci Continuous integration]] [[https://travis-ci.org/vfremaux/moodle-mod_customlabel/branches|Travis-ci Continuous integration]]
Ligne 61: Ligne 65:
  
 <html><!-- /nomoodle --></html> <html><!-- /nomoodle --></html>
-====Credits====+==== Credits ====
  
   * Valéry Frémaux (valery.fremaux@gmail.com) - Architecture and development   * Valéry Frémaux (valery.fremaux@gmail.com) - Architecture and development
   * Florence Labord (florence@activeprolearn.com) - Plugin documentation and standard artwork   * Florence Labord (florence@activeprolearn.com) - Plugin documentation and standard artwork
  
 +==== Road map ====
  
 +We seriously plan to rewrite fundamentally this module in order to simplify the implementation. the major reason of the code complexity of this module was the inheritance of tricky constraints of Moodle 1.9 architecture for being able to produce the course element content in the course view. This has not been reviewed because we needed at early moodle 2.x stages that the plugin keep entire compatibility with Moodle 1.9 contents. 
  
 +The pressure to stay full compatible with old storage model is lower now, unless we can provide a good model translator for actual component architecture to new one.
 +
 +I am sure that the component will gain in maintenability, and will lower risk of technological obsolescence in the future. 
 +
 +What should be great to achieve as workplan:
 +
 +   - Restructure storage adding a mdl_customlabel_data table capable to flat storing the element's internal individual values. This will discard completely the older ugly strategy that records the customlabel inside itself in a serialized way. Building the element content would be really such simpler.
 +   - Mustache the rendering, or proposing the administrator to define the mustache templates for rendering the element just through global settings. This would let the labels to be very flexible in appearence, while based on a formal data micromodel.
 +   - Allow administrators to add a customlabel CSS attached to the template. This is yet possible in themes providing the "Custom CSS" feature, but at a further location from where the element is managed.
 +   - Let templates and CSS be stored in backup, so elements could move from a moodle to another. This will vote for storing a local copy of template and css rules in the instance record.
 +   - Provide a global setting level moodle filearea to store all the graphic assets, icons, backgrounds, other images used in elements.
 +   - Think about reserving also an instance filearea for overriding those assets.
 +   - Develop a new customlabel element type capable to get any content from outside moodle using an embedded web service client, and using the captured content as its proper content.
 +   - Develop a new customlabel element type capable to get any content of a direct HTML url (publicly accessible) and clip the content by regexps (start/stop).
 +
 +The global goal of those changes is to make all aspect configuration possible without coding access.
 +
 +As usual, such a radical change needs a lo of time, and probably budget. At the moment I lack both. So I do not expect short time resolution at the moment, but the road is traced.
 +
 +-------------------
 +<html><!-- nomoodle --></html>
 [[:plugins|Back to plugins index]] - [[:start|Back to home]] [[:plugins|Back to plugins index]] - [[:start|Back to home]]
 +<html><!-- /nomoodle --></html>
mod/customlabel.1488118533.txt.gz · Dernière modification : (modification externe)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki