configure SMW correctly in new namespaces
This commit is contained in:
parent
6ac5881e90
commit
d1abf4b0a4
1 changed files with 22 additions and 10 deletions
|
|
@ -29,6 +29,16 @@ require_once "/etc/orga_mediawiki/SecretSettings.php";
|
|||
$wgSitename = "CTBK Orgawiki";
|
||||
$wgMetaNamespace = "Wiki";
|
||||
|
||||
#### Namespace config
|
||||
define('NS_FSCK', 100);
|
||||
define('NS_FSCK_TALK', 101);
|
||||
define('NS_VEREIN', 200);
|
||||
define('NS_VEREIN_TALK', 201);
|
||||
$wgExtraNamespaces[NS_FSCK] = 'FSCK';
|
||||
$wgExtraNamespaces[NS_FSCK_TALK] = 'FSCK_Diskussion';
|
||||
$wgExtraNamespaces[NS_VEREIN] = 'Verein';
|
||||
$wgExtraNamespaces[NS_VEREIN_TALK] = 'Verein_Diskussion';
|
||||
|
||||
## The URL base path to the directory containing the wiki;
|
||||
## defaults for all runtime URL paths are based off of this.
|
||||
## For more information on customizing the URLs
|
||||
|
|
@ -162,15 +172,6 @@ enableSemantics( 'orgawiki.ctbk.de' );
|
|||
|
||||
wfLoadExtension( 'Lockdown' );
|
||||
|
||||
#### Namespace config
|
||||
define('NS_FSCK', 100);
|
||||
define('NS_FSCK_TALK', 101);
|
||||
define('NS_VEREIN', 200);
|
||||
define('NS_VEREIN_TALK', 201);
|
||||
$wgExtraNamespaces[NS_FSCK] = 'FSCK';
|
||||
$wgExtraNamespaces[NS_FSCK_TALK] = 'FSCK_Diskussion';
|
||||
$wgExtraNamespaces[NS_VEREIN] = 'Verein';
|
||||
$wgExtraNamespaces[NS_VEREIN_TALK] = 'Verein_Diskussion';
|
||||
|
||||
#### Permissions
|
||||
|
||||
|
|
@ -223,7 +224,10 @@ $wgNamespacePermissionLockdown['*']['edit'] = ['sysop'];
|
|||
$wgNamespacePermissionLockdown['*']['createpage'] = ['sysop'];
|
||||
|
||||
# limit template workaround
|
||||
$wgNonincludableNamespaces[] = [ NS_MAIN, NS_PROJECT, NS_VEREIN, NS_FSCK ];
|
||||
$wgNonincludableNamespaces[] = NS_MAIN;
|
||||
$wgNonincludableNamespaces[] = NS_PROJECT;
|
||||
$wgNonincludableNamespaces[] = NS_VEREIN;
|
||||
$wgNonincludableNamespaces[] = NS_FSCK;
|
||||
|
||||
# FSCK namespace
|
||||
$wgNamespacePermissionLockdown[NS_FSCK]['read'] = [ 'orga-fsck' ];
|
||||
|
|
@ -272,10 +276,18 @@ $wgHideInterlanguageLinks = false;
|
|||
#$wgShowExceptionDetails = true;
|
||||
#$wgShowDBErrorBacktrace = true;
|
||||
|
||||
### Namespace attributes
|
||||
$wgNamespacesWithSubpages[NS_MAIN] = true;
|
||||
$wgNamespacesWithSubpages[NS_FSCK] = true;
|
||||
$wgNamespacesWithSubpages[NS_VEREIN] = true;
|
||||
$wgNamespacesWithSubpages[NS_TEMPLATE] = true;
|
||||
# SMW enabled on custom namespaces
|
||||
$smwgNamespacesWithSemanticLinks[NS_FSCK] = true;
|
||||
$smwgNamespacesWithSemanticLinks[NS_FSCK_TALK] = true;
|
||||
$smwgNamespacesWithSemanticLinks[NS_VEREIN] = true;
|
||||
$smwgNamespacesWithSemanticLinks[NS_VEREIN_TALK] = true;
|
||||
$wgContentNamespaces[] = NS_FSCK;
|
||||
$wgContentNamespaces[] = NS_VEREIN;
|
||||
|
||||
# use proxy ip addresses -- we’re behind (at least) one reverse proxy that sets X-Forwarded-For
|
||||
$wgUsePrivateIPs = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue