Product Plugins » History » Version 1
Patrick Kohl, 10/08/2011 04:01 PM
| 1 | 1 | Patrick Kohl | h1. Product Plugins |
|---|---|---|---|
| 2 | |||
| 3 | h2. for user |
||
| 4 | |||
| 5 | The product plugin is installed as a standard joomla plugin |
||
| 6 | |||
| 7 | To see it you must publish it in joomla extention after installation. |
||
| 8 | |||
| 9 | After you do that, you can find it in the customfields |
||
| 10 | |||
| 11 | on edit Choice : |
||
| 12 | Custom Field Type : plugin |
||
| 13 | |||
| 14 | After choicing the plugin you can setup the defaut value depending on your plugin. |
||
| 15 | |||
| 16 | h2. for developper. |
||
| 17 | |||
| 18 | h3. Language files : |
||
| 19 | |||
| 20 | XML install file must use the name in this form plg_vmcustom_YOURPLUGINNAME |
||
| 21 | |||
| 22 | EG. for textinput french and english |
||
| 23 | <languages> |
||
| 24 | <language tag="en-GB">en-GB.plg_vmcustom_textinput.ini</language> |
||
| 25 | <language tag="fr-FR">fr-FR.plg_vmcustom_textinput.ini</language> |
||
| 26 | </languages> |
||
| 27 | |||
| 28 | the constructor include directly the language file to simplify using JTEXT |
||
| 29 | |||
| 30 | Try to always use this convention name in the ini files : |
||
| 31 | VMCUSTOM_YOURPLUGINNAME_STRING="my string in english" |
||
| 32 | |||
| 33 | EG. for texinput plugin , string : size |
||
| 34 | VMCUSTOM_TEXTINPUT_INPUT_SIZE="Size of input" |
||
| 35 | |||
| 36 | h3. Write your plugin : |
||
| 37 | |||
| 38 | TODO |
||
| 39 | |||
| 40 | h3. Use plugin parameters : |
||
| 41 | |||
| 42 | TODO |