DokuWiki

It's better when it's simple

User Tools

Site Tools


config:license

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
config:license [2009-11-28 10:57] kazmiyaconfig:license [2023-02-28 21:14] (current) Aleksandr
Line 1: Line 1:
 ====== Configuration Setting: license ====== ====== Configuration Setting: license ======
  
-This setting configures the license under which the content of your wiki can be distributed. The licenses you can choose in this setting are configured in the ''conf/license.php''. By default it contains a list of [[http://www.creativecommons.org|Creative Commons]] licenses.+This setting configures the license under which the content of your wiki can be distributed. The licenses you can choose in this setting are configured in the ''[[https://github.com/dokuwiki/dokuwiki/blob/master/conf/license.php|conf/license.php]]''. By default it contains a list of [[https://creativecommons.org|Creative Commons]] licenses and [[https://www.gnu.org/licenses/fdl.html|GNU FDL]].
  
   * Type: String   * Type: String
Line 13: Line 13:
  
   $conf['license'] = '';   $conf['license'] = '';
 +
 ===== Adding a new license ===== ===== Adding a new license =====
  
Line 21: Line 22:
 <code php> <code php>
 <?php <?php
-$license['license'] = array(+$license['license-name'] = array(
     'name' => 'Full Name of the License',     'name' => 'Full Name of the License',
     'url'  => 'http://example.com/license',     'url'  => 'http://example.com/license',
 ); );
-?> 
 </code> </code>
  
-Array key ''license'' is the short name of the chosen license as it is used in the config setting mentioned above.+Array key ''license-name'' from the table ''license'' is the short name of the chosen license as it is used in the config setting value ''$conf['license']'' mentioned above.
  
-For each license an image named like the short name (ending in ''.gif'' or ''.png'' should be placed in ''lib/images/license/button'' (80x15 pixel) and ''lib/images/license/badge'' (88x31 pixel).+For each license an image named like the short name (ending in ''.gif'' or ''.png''should be placed in ''lib/images/license/button'' (80x15 pixel) and ''lib/images/license/badge'' (88x31 pixel).
  
 ===== See also ===== ===== See also =====
  
   * [[:config:|Configuring DokuWiki]]   * [[:config:|Configuring DokuWiki]]
 +
config/license.1259402257.txt.gz · Last modified: 2009-11-28 10:57 (external edit)

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki