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

From semantic-mediawiki.org
Configuration parameter details:
Name $smwgPageSpecialProperties
Description Sets the page related special properties to be used
Default setting
array( '_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 = array( '_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:

NameDescriptionHelp pageAddedKey
Modification dateHolds a fixed value that corresponds to the date of the last modification of each pageSpecial property "Modification date"1.4.0
_MDAT
Creation dateHolds a fixed value that corresponds to the date of the first revision of each pageSpecial property "Creation date"1.7.0
_CDAT
Is a new pageHolds a value marking a page as being new or notSpecial property "Is a new page"1.7.1
_NEWP
Last editor isHolds the page name of the user who created the last page revisionSpecial property "Last editor is"1.7.1
_LEDT
MIME typeHolds the MIME type of an uploaded fileSpecial property "MIME type"1.9.1
_MIME
Media typeHolds the Media type of an uploaded fileSpecial property "Media type"1.9.1
_MEDIA
Display title ofHolds a specific denote title for an entitySpecial property "Display title of"2.4.0
_DTITLE

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 this configuration setting, add one of the following lines to your "LocalSettings.php" file after the enableSemantics() call:

Disabling this feature
$smwgPageSpecialProperties = array( );
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, array( '_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 = array( '_NEWP' );