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

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


Title $smwgUseCategoryRedirect
Description Set whether redirects on categories should be detected and used as annotation value
Default setting
true
(Other) available settings
false

Allows to disable detecting redirects on categories and use them as annotation value

Software Semantic MediaWiki
First version supported
Last version supported still available
Configuration Query settings
Keyword redirects · category

$smwgUseCategoryRedirect is a configuration parameter that sets whether redirects on categories should be detected and used as annotation value1. The setting was introduced2 as well as deprecated3 with Semantic MediaWiki 3.0.0Released on an unknown date and compatible with MW 1.27.0 - 1.30.x..

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_REDIRECT to configuration parameter $smwgCategoryFeaturesSets the behaviour of the query features related to category handling streamlining the overall configuration of Semantic MediaWiki.3 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

$smwgUseCategoryRedirect = true;

This means that redirects on categories are being detected and used as annotation value. Moreover errors are being tracked on invalid redirects beyond special page "Browse"Shows all properties and their values annotated to a page.

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 detecting redirects on categories and use them as annotation value
$smwgUseCategoryRedirect = false;

This means that redirects on categories are not being detected and used as annotation value. Thus it will not be possible to track errors on invalid redirects and make them discoverable beyond special page "Browse"Shows all properties and their values annotated to a page.

See also


References

  1. ^  Semantic MediaWiki: User mailing list thread "Query doesn't show all rows"
  2. ^  Semantic MediaWiki: GitHub pull request gh:smw:2471
  3. a b  Semantic MediaWiki: GitHub pull request gh:smw:2806