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

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


Title $smwgCategoriesAsInstances
Description Sets whether a category statement should be treated as an element of the category
Default setting
true
(Other) available settings
false

Allows to disable category statements being treated as elements of the category

Software Semantic MediaWiki
First version supported
Last version supported still available
Configuration Query settings
Keyword category · inclusion · category hierarchy · subcategory · hierarchy inferencing

$smwgCategoriesAsInstances is a configuration parameter that sets whether a category statement like e.g. [[Category:Foo]] should be treated as an element of the category "Foo". The setting was introduced in Semantic MediaWiki 1.5.0Released on 7 March 2010 and compatible with MW 1.14.x - 1.17.x. and deprecated with Semantic MediaWiki 3.0.0Released on an unknown date and compatible with MW 1.27.0 - 1.30.x.1.

This configuration parameter was deprecated with Semantic MediaWiki 3.0.0Released on an unknown date and compatible with MW 1.27.0 - 1.30.x. in favour of option SMW_CAT_INSTANCE to configuration parameter $smwgCategoryFeaturesSets the behaviour of the query features related to category handling streamlining the overall configuration of Semantic MediaWiki.1 Thus you are advised to migrate your settings in "LocalSettings.php" to the new configuration parameter since this one will be removed with the release of Semantic MediaWiki 3.1.0Released on an unknown date and compatible with unknown versions of MediaWiki. in late 2018.

Default setting

$smwgCategoriesAsInstances = true;

This means that category statements being treated as elements of the category, e.g. [[Category:Foo]] should be treated as an element of the category "Foo".

Changing the default setting

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

Disable category statements being treated as elements of the category
$smwgCategoriesAsInstances = false;

This means that category statements are not being treated as elements of the category thus making it impossible to make category pages elements of other categories.

See also

References

  1. a b  Semantic MediaWiki: GitHub pull request gh:smw:2806