$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
$smwgShowHiddenCategories to its replacement has been removed, so this setting is now silently ignored. Migrate to configuration parameter $smwgParserFeaturesSets the behaviour of features related to text and annotation parsing (option 'hidden-categories') in "LocalSettings.php".2
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:
- 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
$smwgParserFeaturesSets the behaviour of features related to text and annotation parsing
References
- ^ Semantic MediaWiki: GitHub pull request gh:smw:2802
- ^ | | | | | | | | | Semantic MediaWiki: GitHub pull request gh:smw:6706