Help:Configuration parameter "$smwgPageSpecialProperties"

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


Title $smwgPageSpecialProperties
Description Sets the page related special properties to be used
Default setting
array( '_MDAT' );
Software Semantic MediaWiki
First version supported
Last version supported 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 setting was introduced in Semantic MediaWiki 1.7.0Released on 1 January 2012 and compatible with MW 1.16.x - 1.19.x.

Default setting

$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

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 pageHelp:Special property "Modification date"1.4.0
_MDAT
Creation dateHolds a fixed value that corresponds to the date of the first revision of each pageHelp:Special property "Creation date"1.7.0
_CDAT
Is a new pageHolds a value marking a page as being new or notHelp:Special property "Is a new page"1.7.1
_NEWP
Last editor isHolds the page name of the user who created the last page revisionHelp:Special property "Last editor is"1.7.1
_LEDT
Media typeHolds the Media type of an uploaded fileHelp:Special property "Media type"1.9.1
_MEDIA
MIME typeHolds the MIME type of an uploaded fileHelp:Special property "MIME type"1.9.1
_MIME
Display title ofHolds a specific denote title for an entityHelp:Special property "Display title of"2.4.0
_DTITLE

Changing the default setting

Important noteImportant Note: MediaWiki's maintenance script "update.php" 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( '_CDAT' );