$smwgShowHiddenCategories
Configuration parameter details: | |||
Name | $smwgShowHiddenCategories | ||
Description | Sets whether to omit categories marked with the HIDDENCAT behaviour switch from the annotation process | ||
Default setting | true |
||
(Other) available settings |
|
||
Software | Semantic MediaWiki | ||
Since version | |||
Until version | still available | ||
Configuration | Installation | ||
Keyword | parser · category · annotation |
$smwgShowHiddenCategories
is a configuration parameter that sets whether to omit categories marked with the behaviour switch __HIDDENCAT__
from the annotation process. The configuration parameter was introduced in Semantic MediaWiki 1.9.0Released on 3 January 2014 and compatible with MW 1.19.0 - 1.22.x. and deprecated with Semantic MediaWiki 3.0.0Released on 11 October 2018 and compatible with MW 1.27.0 - 1.31.x..1
SMW_PARSER_HID_CATS
to configuration parameter $smwgParserFeatures
Sets the behaviour of features related to text and annotation parsing 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 23 September 2019 and compatible with MW 1.31.0 - 1.33.x. in 2019.
Default setting[edit]
$smwgShowHiddenCategories = true;
This means that if a category is updated either being hidden or visible, pages need to be refreshed to ensure that the "StoreUpdater" can make use of the changed environment.
(except 1.22.1). and earlier.
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:
- Prevent categories from being shown
$smwgShowHiddenCategories = false;
This means that hidden categories are discarded during the parsing process.
See also[edit]
- Help page on in-text annotation
- Help page on configuration parameter
$smwgParserFeatures
Sets the behaviour of features related to text and annotation parsing
References
- a b Semantic MediaWiki: GitHub pull request gh:smw:2802