$smwgUseCategoryRedirect

From semantic-mediawiki.org


Configuration parameter details:
Name $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
Since version
Until version
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 configuration parameter was meant to be introduced in Semantic MediaWiki 3.0.0Released on 11 October 2018 and compatible with MW 1.27.0 - 1.31.x.2 but removed in favour of option SMW_CAT_REDIRECT to configuration parameter $smwgCategoryFeaturesSets the behaviour of the query features related to category handling3 prior to the release.

Default setting[edit]

$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[edit]

To modify the setting to this configuration parameter, 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[edit]


References

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