$smwgPageSpecialProperties

From Linux Web Expert


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


__NOBREADCRUMBLINKS__

$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 an unknown date unknown versions of MediaWiki

Default setting

$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


So far no page related special property was documented in this wiki.

Changing the default setting

MediaWiki's maintenance script "update.php" (MediaWiki.org) followed by the maintenance script "rebuildData.php"No description was provided. 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' ];