Plugins - advanced: Difference between revisions
From LimeSurvey Manual
DenisChenu (talk | contribs) No edit summary |
m (Cdorin moved page Talk:Plugins to Talk:Plugins - advanced) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 17: | Line 17: | ||
! <b>Setting type</b> !! <b>Description</b> !! <b>Example usage</b> | ! <b>Setting type</b> !! <b>Description</b> !! <b>Example usage</b> | ||
|- | |- | ||
| <code>logo</code> || Logo to what? Put a logo in HTML flow | | <code>logo</code> || Logo to what? Put a logo in HTML flow || near same than 'info' type | ||
|- | |- | ||
| <code>string</code> || Enter string, htmlOptions needed for HTML5 validation || https://github.com/SondagesPro/LS-exportCompleteAnswers/blob/master/exportCompleteAnswers.php#L64 | | <code>string</code> || Enter string, htmlOptions needed for HTML5 validation || https://github.com/SondagesPro/LS-exportCompleteAnswers/blob/master/exportCompleteAnswers.php#L64 | ||
Line 27: | Line 27: | ||
| <code>choice</code> || choice : select box, need htmlOptions (multiple) || https://github.com/SondagesPro/LS-moreAccessibility/blob/master/moreAccessibility.php#L32 , can be multiple. | | <code>choice</code> || choice : select box, need htmlOptions (multiple) || https://github.com/SondagesPro/LS-moreAccessibility/blob/master/moreAccessibility.php#L32 , can be multiple. | ||
|- | |- | ||
| <code>relevance</code> || | | <code>relevance</code> || Enter a relevance equation (this is basically a text editor++ think syntax highlighting / checking). | ||
|- | |- | ||
| <code>password</code> || A password : to fix : don't show it in HTML flow. || for another tool (smtp/API ... etc) | | <code>password</code> || A password : to fix : don't show it in HTML flow. || for another tool (smtp/API ... etc) | ||
Line 51: | Line 51: | ||
[[User:Olle|Olle]] ([[User talk:Olle|talk]]) 15:37, 23 April 2016 (CEST) | [[User:Olle|Olle]] ([[User talk:Olle|talk]]) 15:37, 23 April 2016 (CEST) | ||
@todo : add 'lang" system : show directly html/textarea/input with all language of survey or global settings. Sam start something when save with extra data. | |||
[[User:DenisChenu|DenisChenu]] ([[User talk:DenisChenu|talk]]) 08:51, 27 April 2016 (CEST) | |||
Any information about plugins and translations? | Any information about plugins and translations? | ||
[[User:Olle|Olle]] ([[User talk:Olle|talk]]) 22:46, 25 April 2016 (CEST) | [[User:Olle|Olle]] ([[User talk:Olle|talk]]) 22:46, 25 April 2016 (CEST) | ||
@todo : bug reported on Feature request. It's a must have. Thii Yii::t directly is better for this [[User:DenisChenu|DenisChenu]] ([[User talk:DenisChenu|talk]]) 08:51, 27 April 2016 (CEST) | |||
Another feature request: A member variable that checks for LS version number. | Another feature request: A member variable that checks for LS version number. | ||
[[User:Olle|Olle]] ([[User talk:Olle|talk]]) 23:07, 25 April 2016 (CEST) | [[User:Olle|Olle]] ([[User talk:Olle|talk]]) 23:07, 25 April 2016 (CEST) | ||
Already can be done App()->getConfig("version"); I use it in one of my plugin, but don't remind where. [[User:DenisChenu|DenisChenu]] ([[User talk:DenisChenu|talk]]) 08:51, 27 April 2016 (CEST) |
Latest revision as of 15:57, 24 August 2017
Add a picture to show how each setting type look like.
Olle (talk) 23:36, 22 April 2016 (CEST)
TODO: Add information of each setting type:
- logo
- string
- html
- choice
- relevance
- info
should rather be:
Setting type | Description | Example usage |
---|---|---|
logo |
Logo to what? Put a logo in HTML flow | near same than 'info' type |
string |
Enter string, htmlOptions needed for HTML5 validation | https://github.com/SondagesPro/LS-exportCompleteAnswers/blob/master/exportCompleteAnswers.php#L64 |
float/integer |
Enter a number | |
html |
a textearea with html editor for admin user (or public user ?) | |
choice |
choice : select box, need htmlOptions (multiple) | https://github.com/SondagesPro/LS-moreAccessibility/blob/master/moreAccessibility.php#L32 , can be multiple. |
relevance |
Enter a relevance equation (this is basically a text editor++ think syntax highlighting / checking). | |
password |
A password : to fix : don't show it in HTML flow. | for another tool (smtp/API ... etc) |
info |
Show information in the settings |
protected $settings = array(
'PluginName_settingName' => array(
'type' => 'info',
'content' => 'This is some info'
)
);
|
Olle (talk) 23:44, 22 April 2016 (CEST)
We need a way to center info, or style it better by default. Also, it should use Bootstrap form-horizontal, the labels are not centered vertically as should.
Olle (talk) 00:17, 23 April 2016 (CEST)
TODO: Add support for tabs in the settings widget.
Olle (talk) 15:37, 23 April 2016 (CEST)
@todo : add 'lang" system : show directly html/textarea/input with all language of survey or global settings. Sam start something when save with extra data. DenisChenu (talk) 08:51, 27 April 2016 (CEST)
Any information about plugins and translations?
Olle (talk) 22:46, 25 April 2016 (CEST)
@todo : bug reported on Feature request. It's a must have. Thii Yii::t directly is better for this DenisChenu (talk) 08:51, 27 April 2016 (CEST)
Another feature request: A member variable that checks for LS version number.
Olle (talk) 23:07, 25 April 2016 (CEST)
Already can be done App()->getConfig("version"); I use it in one of my plugin, but don't remind where. DenisChenu (talk) 08:51, 27 April 2016 (CEST)