devel:configuration
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
devel:configuration [2010-12-26 13:49] – Added missing and new config classes and parameters Michitux | devel:configuration [2019-07-11 16:18] (current) – [Classes] Remove deprecated richemail, add array phy25 | ||
---|---|---|---|
Line 34: | Line 34: | ||
==== Classes ==== | ==== Classes ==== | ||
- | ^ '' | + | ^ '' |
- | ^ '' | + | ^ '' |
- | ^ '' | + | ^ '' |
- | ^ '' | + | ^ '' |
- | ^ '' | + | ^ '' |
- | ^ '' | + | ^ '' |
- | ^ '' | + | ^ '' |
- | ^ '' | + | ^ '' |
- | ^ '' | + | ^ '' |
- | ^ '' | + | ^ '' |
- | ^ '' | + | ^ '' |
- | ^ '' | + | ^ '' |
- | ^ '' | + | ^ '' |
+ | ^ '' | ||
==== Parameters ==== | ==== Parameters ==== | ||
- | ^ '' | + | ^ '' |
- | ^ '' | + | ^ '' |
- | ^ '' | + | ^ '' |
- | ^ '' | + | ^ '' |
- | ^ '' | + | ^ '' |
- | ^ '' | + | ^ '' |
- | ^ '' | + | ^ '' |
+ | ^ '' | ||
+ | ^ '' | ||
+ | ^ '' | ||
+ | ^ '' | ||
+ | ^ '' | ||
+ | |||
+ | |||
+ | ==== Examples ==== | ||
+ | |||
+ | === '' | ||
+ | |||
+ | Let's say initially a plugin uses the syntax: | ||
+ | |||
+ | <code php> | ||
+ | |||
+ | this means the multicheckbox will show four choices plus a string input. | ||
+ | |||
+ | Let's suppose also that the user inserts one or more extra values not in '' | ||
+ | |||
+ | In the next release of the plugin the author' | ||
+ | |||
+ | <code php> | ||
+ | |||
+ | which means: | ||
+ | * if the user has inserted comma separated values, they will be printed in the extra string; | ||
+ | * otherwise the extra string won't show. | ||
+ | |||
+ | Note also that if the user inserts comma separated values which already exist (or some of them) in '' | ||
+ | * they are already ticked, then the extra string will be removed and nothing else; | ||
+ | * they are not already ticked, then the extra string will be removed and the relative value will be ticked. | ||
===== Accessing Settings ===== | ===== Accessing Settings ===== | ||
- | You can access settings in [[plugins]] by using the '' | + | ====Core Settings==== |
+ | Inside [[xref> | ||
+ | You can access the core settings anywhere by using the '' | ||
+ | |||
+ | <code php> | ||
+ | $startpage = $conf[' | ||
+ | </ | ||
+ | |||
+ | ====Plugin settings==== | ||
+ | You can access settings in [[plugins]] by using the '' | ||
+ | In your plugin class you use: | ||
+ | <code php> | ||
+ | $keyvalue = $this-> | ||
+ | </ | ||
+ | |||
+ | ==== Template settings==== | ||
+ | In [[templates]] you can use '' | ||
+ | <code php> | ||
+ | $nicetoknow = tpl_getConf(' | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== Labels in Configuration Manager ===== | ||
+ | For every setting in '' | ||
+ | |||
+ | You can also create a '' | ||
- | ===== Labels ===== | + | Again, this also applies to templates (see [[: |
- | For every setting in '' | + |
devel/configuration.1293367752.txt.gz · Last modified: 2010-12-26 13:49 by Michitux