$smwgPageSpecialProperties

From semantic-mediawiki.org


Configuration parameter details:
Name $smwgPageSpecialProperties
Description Sets the page related special properties to be used
Default setting
[ '_MDAT' ]
Software Semantic MediaWiki
Since version
Until version still available
Configuration Installation
Keyword page related special properties · special property · store


$smwgPageSpecialProperties is a configuration parameter that is used to enable or disable page-related special properties. The configuration parameter was introduced in Semantic MediaWiki 1.7.0Released on 1 January 2012 and compatible with MW 1.16.x - 1.19.x.

Default setting[edit]

$smwgPageSpecialProperties = [ '_MDAT' ];

This means that special property "Modification date"Holds a fixed value that corresponds to the date of the last modification of each page is active from start.

Available special properties[edit]

The following page related special properties are available for this configurations setting:

Name Description Help Added Key
Modification date Holds a fixed value that corresponds to the date of the last modification of each page help page 1.4.0
_MDAT
Creation date Holds a fixed value that corresponds to the date of the first revision of each page help page 1.7.0
_CDAT
Is a new page Holds a value marking a page as being new or not help page 1.7.1
_NEWP
Last editor is Holds the page name of the user who created the last page revision help page 1.7.1
_LEDT
MIME type Holds the MIME type of an uploaded file help page 1.9.1
_MIME
Media type Holds the Media type of an uploaded file help page 1.9.1
_MEDIA
Display title of Holds a specific denote title for an entity help page 2.4.0
_DTITLE
Attachment link Holds the links to files embedded on a page help page 3.1.0
_ATTCH_LINK

Changing the default setting[edit]

MediaWiki's maintenance script "update.php" (MediaWiki.org) followed by the maintenance script "rebuildData.php"Allows to rebuild all the semantic data for a selected data backend/store have to be run after changing the setting of this configuration parameter.

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

Disabling this feature
$smwgPageSpecialProperties = [ ];
Adding special property "Creation date"Holds a fixed value that corresponds to the date of the first revision of each page and special property "Is a new page"Holds a value marking a page as being new or not
$smwgPageSpecialProperties[] = '_CDAT';
$smwgPageSpecialProperties[] = '_NEWP';

or alternatively

$smwgPageSpecialProperties = array_merge(
        $smwgPageSpecialProperties, [ '_CDAT', '_NEWP' ]
);
Replacing special property "Modification date"Holds a fixed value that corresponds to the date of the last modification of each page by special property "Is a new page"Holds a value marking a page as being new or not
$smwgPageSpecialProperties = [ '_NEWP' ];