Difference between revisions of "Configuration Options"

From SemanticOrganization
Jump to: navigation, search
(Created page with "== Additional Properties == $wgSemorgAdditionalProperties[""] = [ "id" => "", "fields" => [ "id" => "", "type" => "" ] ]; :Set this variable to true if...")
 
 
(One intermediate revision by the same user not shown)
Line 9: Line 9:
 
  ];
 
  ];
  
:Set this variable to true if you want to use Boostrap 4 instead of Bootstrap 3. Note that there are changes in the markup! <span class="badge">v1.2.0+</span>
+
:Use this configuration option as a convenient way to create new predefined properties. If you use <code>semorg-generator</code> to create a new feature it will provide this line to be inserted into <code>LocalSettings.php</code>.
 +
 
 +
== Custom Styles ==
 +
 
 +
$wgSemorgUseCustomStyles = false;
 +
 
 +
You have to create your custom styles first (requires node.js and npm):
 +
 
 +
cd extensions/SemanticOrganization
 +
cd /var/www/html/extensions/SemanticOrganization
 +
cp resources/custom/styles/example.custom.scss resources/custom/styles/custom.scss
 +
npm run prod
 +
 
 +
== List Limit ==
 +
 
 +
$wgSemorgListLimit = 20;

Latest revision as of 07:26, 3 November 2021

Additional Properties

$wgSemorgAdditionalProperties[""] = [
  "id" => "",
  "fields" => [
    "id" => "",
    "type" => ""
  ]
];
Use this configuration option as a convenient way to create new predefined properties. If you use semorg-generator to create a new feature it will provide this line to be inserted into LocalSettings.php.

Custom Styles

$wgSemorgUseCustomStyles = false;

You have to create your custom styles first (requires node.js and npm):

cd extensions/SemanticOrganization
cd /var/www/html/extensions/SemanticOrganization
cp resources/custom/styles/example.custom.scss resources/custom/styles/custom.scss
npm run prod

List Limit

$wgSemorgListLimit = 20;