Actions

Talk

Plugins - advanced: Difference between revisions

From LimeSurvey Manual

No edit summary
No edit summary
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?
| <code>logo</code> || Logo to what? Put a logo in HTML flow : near same than 'info' type
|-
|-
| <code>string</code> || Enter string?
| <code>string</code> || Enter string : https://github.com/SondagesPro/LS-exportCompleteAnswers/blob/master/exportCompleteAnswers.php#L64
|-
|-
| <code>html</code> || eh?
| <code>number/integer</code> || Enter a number
|-
|-
| <code>choice</code> || Choice of what?
| <code>html</code> || a textearea with html editor for admin user (or public user ?)
|-
| <code>choice</code> || choice : select box : https://github.com/SondagesPro/LS-moreAccessibility/blob/master/moreAccessibility.php#L32 , can be multiple.
|-
|-
| <code>relevance</code> || ?
| <code>relevance</code> || ?
|-
| <code>password</code> || A password for another tool (smtp/API ... etc) : to fix : don't show it in HTML flow.
|-
|-
| <code>info</code> || Show information in the settings ||
| <code>info</code> || Show information in the settings ||
Line 35: Line 39:
   )
   )
);
);
</syntaxhighlight>
</syntaxhighlight>  
|}
|}



Revision as of 08:45, 27 April 2016

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 : https://github.com/SondagesPro/LS-exportCompleteAnswers/blob/master/exportCompleteAnswers.php#L64
number/integer Enter a number
html a textearea with html editor for admin user (or public user ?)
choice choice : select box : https://github.com/SondagesPro/LS-moreAccessibility/blob/master/moreAccessibility.php#L32 , can be multiple.
relevance ?
password A password for another tool (smtp/API ... etc) : to fix : don't show it in HTML flow.
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)

Any information about plugins and translations?

Olle (talk) 22:46, 25 April 2016 (CEST)

Another feature request: A member variable that checks for LS version number.

Olle (talk) 23:07, 25 April 2016 (CEST)