Help:Configuration parameter "$smwgDVFeatures"

Jump to: navigation, search
Title $smwgDVFeatures
Description Specifies which DV (DataValue) features are enabled and available by default.
Default setting
see documentation
Software Semantic MediaWiki
Introduced with version 2.4.0
Removed with version still available
Configuration DataValue
Keyword Output · Display


See the DefaultSettings page for a detailed description.

Changing the default setting

Remove a feature flag

Removing the SMW_DV_WPV_DTITLE feature from the default setting.

$GLOBALS['smwgDVFeatures'] = $GLOBALS['smwgDVFeatures'] & ~SMW_DV_WPV_DTITLE;

Enable a feature flag

Enable support for SMW_DV_PVUC property trait.

$GLOBALS['smwgDVFeatures'] = $GLOBALS['smwgDVFeatures'] | SMW_DV_PVUC;

NoteNote:  Please use parentheses1 when combining different bit-operations to avoid a possible mismatch.

$GLOBALS['smwgDVFeatures'] = ( $GLOBALS['smwgDVFeatures'] & ~SMW_DV_WPV_DTITLE ) | SMW_DV_PVUC;

See also


  1. ^  Bitwise Operators to use parentheses to ensure the desired precedence ...