Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
en:extensions:colorizer:developer [2014/01/02 17:10]
swarnat created
en:extensions:colorizer:developer [2015/03/30 15:07] (current)
swarnat
Line 6: Line 6:
  
 At the moment the only feature you could extend are the condition functions like "is empty",​ "is equal",​ "​is_lower",​ ... But this is the only point, which is interesting for you. At the moment the only feature you could extend are the condition functions like "is empty",​ "is equal",​ "​is_lower",​ ... But this is the only point, which is interesting for you.
-In the directory **modules/​Colorizer/​functions/​** you see a file called **core.inc.php**.+In the directory **modules/​Colorizer/extends/​functions/​** you see a file called **core.inc.php**.
  
 Here you could see the definitions of the original conditions and the structure you need to create your own functions. Here you could see the definitions of the original conditions and the structure you need to create your own functions.
Line 26: Line 26:
 The Parameter value could also be an integer. The Parameters won't shown any label in this case. The Parameter value could also be an integer. The Parameters won't shown any label in this case.
  
-Examples from core.inc.php:​+The JavaScript function get there parameter:​ 
 +  * **key** For future use (At the moment it is “resultField”) 
 +  * **value** ​ the value of the field 
 +  * **record** ​ all values of the complete record (Only available in DetailView) 
 +  * **parameter** : numeric array of parameters, you could define in administration 
 +  * **dynamic** Is this check is done after “ajax-edit” (true) or after pageload (false)? 
 + 
 +Availables values for blockType: **boolean, string, picklist** 
 + 
 +==== Examples from core.inc.php: ​====
  
 <code php> <code php>