Con­figu­ration para­meter "$smwgShowHiddenCategories"

From semantic-mediawiki.org
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
false

Allows to omit categories marked with the HIDDENCAT behaviour switch from the annotation process

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 an unknown date and compatible with MW 1.27.0 - 1.30.x..1

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_PARSER_HID_CATS to configuration parameter $smwgParserFeaturesSets the behaviour of features related to text and annotion 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 an unknown date and compatible with unknown versions of MediaWiki. in late 2018.

Default setting

$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.

This is the legacy behaviour for Semantic MediaWiki 1.8.0Released on 2 December 2012 and compatible with MW 1.17.0 - 1.22.x
(except 1.22.1).
and earlier.

Changing the default setting

To modify this configuration setting, 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.

Changing the setting of this configuration parameter requires maintenance script "rebuildData.php"Allows to rebuild all the semantic data for a selected data backend/store to be run.

See also

References

  1. a b  Semantic MediaWiki: GitHub pull request gh:smw:2802