Help:Con­figu­ration para­meter "$smwgImportReqVersion"

From semantic-mediawiki.org
Jump to: navigation, search
edit with form


Title $smwgImportReqVersion
Description Sets the contents import file version for legitimate files to be imported upon Installation of Semantic MediaWiki
Default setting
1
Software Semantic MediaWiki
First version supported
Last version supported still available
Configuration Installation
Keyword import vocabulary

$smwgImportReqVersion is a configuration parameter that sets the contents import file version for legitimate files to be imported upon Installation of Semantic MediaWiki. Moreover legitimate files are created in the .json format and are located in the directory specified with configuration parameter $smwgImportFileDirsSets the contents import directory for legitimate files to be imported upon Installation of Semantic MediaWiki. It was introduced in Semantic MediaWiki 2.5.0Released on 14 March 2017 and compatible with MW 1.23.0 - 1.29.x..1

Default setting

$smwgImportReqVersion = 1;

This means that by default legitimate files holding file version 1 will be imported upon installation of Semantic MediaWiki.

Changing the default setting

To modify this configuration setting, add one of the following lines to your "LocalSettings.php" file after the enableSemantics() call:

Change to another file version
$smwgImportReqVersion = 2;

This means that legitimate files holding version 2 will be imported upon installation of Semantic MediaWiki.

Disable import of legitimate files
$smwgImportReqVersion = false;

This means that legitimate files will not be imported upon installation of Semantic MediaWiki.

See also

References

  1. ^  Semantic MediaWiki: GitHub pull request gh:smw:2289