$smwgUseCategoryRedirect
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 |
|
||
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.
SMW_CAT_REDIRECT
to configuration parameter $smwgCategoryFeatures
Sets 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]
- Help page on configuration parameter
$smwgCategoryFeatures
Sets the behaviour of the query features related to category handling
References
- ^ Semantic MediaWiki: User mailing list thread "Query doesn't show all rows"
- ^ Semantic MediaWiki: GitHub pull request gh:smw:2471
- ^ Semantic MediaWiki: GitHub pull request gh:smw:2806