Help:Configuration parameter "$smwgPageSpecialProperties"

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


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.0.

Default setting

$smwgPageSpecialProperties = array( '_MDAT' );

This means that special property special property "Modification date" is active from start.

Available special properties


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

Changing the default setting

Important noteImportant Note: MediaWiki's maintenance script "update.php" followed by the "rebuildData.php" maintenance script 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 properties e.g. "Creation date" and "Is a new page"
$smwgPageSpecialProperties[] = '_CDAT';
$smwgPageSpecialProperties[] = '_NEWP';

or alternatively

$smwgPageSpecialProperties = array_merge(
        $smwgPageSpecialProperties, array( '_CDAT', '_NEWP' )
);
Replacing special property "Modification date" by "Is a new page"
$smwgPageSpecialProperties = array( '_CDAT' );


This documentation page applies to all SMW versions from 1.7.0 to the most current version.
      Other languages: frzh-hans

Help:$smwgPageSpecialProperties en 1.7.0