$smwg­Compact­Link­Support

From semantic-mediawiki.org


Configuration parameter details:
Name $smwgCompactLinkSupport
Description Sets whether compact links to special query pages should be used
Default setting
false
(Other) available settings
true

Disables using compact links to special query pages

Software Semantic MediaWiki
Since version
Until version still available
Configuration Basic settings · Installation
Keyword special page · links


$smwgCompactLinkSupport is a configuration parameter that sets whether compact links will be used to link to special pages special page "Browse"Shows all properties and their values annotated to a page, special page "Ask"Provides an interface that assists users with creating and executing semantic queries and special page "SearchByProperty"Allows to search the wiki by properties or property value combinations.1 The configuration parameter was introduced in Semantic MediaWiki 3.0.0Released on 11 October 2018 and compatible with MW 1.27.0 - 1.31.x.. Originally enabled by default, this configuration parameter is disabled by default starting with Semantic MediaWiki 3.0.2Released on 11 April 2019 and compatible with MW 1.27.0 - 1.31.x..2

The mentioned special pages can contain arbitrary text elements and therefore become difficult to transfer when its length exceeds a certain character length. A compact link will thus be encoded and compressed to ensure that it can be handled more easily when referring to it as an URL representation.

If the plain link exceeds 255 characters the compact links feature will cease to work. In this case you are advised not to enable this feature using this configuration parameter.

Default setting[edit]

$smwgCompactLinkSupport = false;

This means that compact links will not be used to link to query special pages.

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:

Enable the usage of compact links
$smwgCompactLinkSupport = true;

This means that compact links will be used to link to query special pages.

References

  1. ^ gh:smw:3017 
  2. ^ gh:smw:3856