A Canasta installation contains 152 extensions and 10 skins, all chosen for the functionality and display they add to MediaWiki; see Contents for the complete listing. By default, only one of these (the "Vector" skin) is enabled on Canasta; any of the rest must be manually enabled. For any extension or skin, there are three ways to enable it:
LocalSettings.php
config/settings/
directory
canasta extension enable
or canasta skin enable
, which in turn adds a new short file to the config/settings/
directory.
The last of these can be undone via the corresponding disable
command.
You can also add other extensions and skins to a Canasta installation; this page covers all of these options.
In LocalSettings.php
you can add an extension by picking its name from the list of bundled extensions and adding a wfLoadExtension
call for it, e.g.:
wfLoadExtension( 'Cite' );
You can also add such a call to any file in the config/settings/
directory, to achieve the same result.
sudo canasta extension list -i canastaId
sudo canasta extension enable Bootstrap -i canastaId
sudo canasta extension disable VisualEditor -i canastaId
sudo canasta extension enable VisualEditor,PluggableAuth -i canastaId
In LocalSettings.php
you can add a skin by picking its name from the list of bundled skins and adding a wfLoadSkin
call for it, e.g.:
wfLoadSkin( 'Timeless' );
You can also add such a call to any file in the config/settings/
directory, to achieve the same result.
sudo canasta skin list -i canastaId
sudo canasta skin enable Vector -i canastaId
sudo canasta skin disable Refreshed -i canastaId
sudo canasta skin enable CologneBlue,Modern -i canastaId
To install a non-Canasta extension, simply place it in the ./extensions
directory and add a wfLoadExtension
call to ./config/LocalSettings.php
, e.g.:
wfLoadExtension( 'MyCustomExtension' );
If an additional (non-Canasta) extension requires some Composer packages to be installed, just
add a line for the extension's composer.json
file to the
config/composer.local.json
file, e.g.:
{
"extra": {
"merge-plugin": {
"include": [
"user-extensions/SomeExtension/composer.json"
]
}
}
}
Note: the require
section of config/composer.local.json
is ignored; thus
you won't be able to install new extensions via Composer, only dependencies.
In order to install a non-Canasta skin, simply place it in the ./skins
directory and add a wfLoadSkin
call to ./config/LocalSettings.php
, e.g.:
wfLoadSkin( 'MyCustomSkin' );