Help:Configuration parameter "$smwgBrowseFeatures"

From semantic-mediawiki.org
Jump to: navigation, search
edit with form


Title $smwgBrowseFeatures
Description Sets the behaviour of the features provided by several Browsing interfaces
Default setting See below
Software Semantic MediaWiki
First version supported
Last version supported still available
Configuration Interface settings · Facts display
Keyword special page · browsing · interface

$smwgBrowseFeatures is a configuration parameter that sets the behaviour of the features provided by several Browsing interfaces. The setting was introduced in Semantic MediaWiki 3.0.0Released on an unknown date and compatible with MW 1.27.0 - 1.30.x.1 and deprecated the configuration parameters as indicated in the section on available options below.

The deprecated configuration settings as indicated in the section on available options should be migrated to this configuration setting in "LocalSettings.php" since they 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.1

Default setting

$smwgBrowseFeatures = SMW_BROWSE_TLINK | SMW_BROWSE_SHOW_INCOMING | SMW_BROWSE_USE_API;

This means that the three respective features as explained in the following sections on available options are enabled.

Available options

For further information on the available options listed above see the documentation pages of the respective deprecated configuration parameters.

Changing the default setting

To modify this configuration setting, add one of the following lines to your "LocalSettings.php" file after the enableSemantics() call:

Removing a specific browsing feature

To disable a specific feature e.g. that the toolbox of each content page shows a link to browse the properties of that page using special page "Browse"Shows all properties and their values annotated to a page just redefine the configuration parameter by defining it without including the corresponding constant as shown in the above section on available options:

$smwgBrowseFeatures = SMW_BROWSE_SHOW_INCOMING | SMW_BROWSE_USE_API;

or alternatively remove the option from the existing definition of the configuration parameter like e.g.

$smwgBrowseFeatures = $smwgBrowseFeatures & ~SMW_BROWSE_TLINK;
Disabling all browsing features

To disable all browse features just remove all constants as shown in the above section on available options:

$smwgBrowseFeatures = '';

or add the constant for disabling all browse features

$smwgBrowseFeatures = SMW_BROWSE_NONE;

See also

References

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