Help:Configuration parameter "$smwgPropertyInvalidCharacterList"

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


Title $smwgPropertyInvalidCharacterList
Description Sets a list of invalid characters which are not allowed to be used for property naming
Default setting See below
Software Semantic MediaWiki
First version supported 2.5.0
Last version supported still available
Configuration Installation
Keyword Property · administration · gardening · setup

$smwgPropertyInvalidCharacterList is a configuration parameter that sets a list of invalid characters which are not allowed to be used for property naming. The setting was introduced in Semantic MediaWiki 2.5.0.1

Default setting

$GLOBALS['smwgPropertyInvalidCharacterList'] = array( '[', ']' , '|' , '<' , '>', '{', '}', '+', '%' );
NoteNote: The characters '.' and '#' are always checked and disallowed despite this configuration parameter.2

Changing the default setting

To modify this configuration setting, add one of the following lines to your "LocalSettings.php" file after the enableSemantics() call:

Extend the list of disallowed characters
$smwgPropertyInvalidCharacterList = array( '[', ']' , '|' , '<' , '>', '{', '}', '+', '%', '$', '€', '¥', '£', '@', '!', '?' );

or

$smwgPropertyInvalidCharacterList = array_merge(
        $smwgPropertyInvalidCharacterList, array(
                '$', '€', '¥', '£', '@', '!', '?'
);
Reduce the list of disallowed characters
$smwgPropertyInvalidCharacterList = array( '[', ']' , '|' , '<' , '>', '{', '}' );
Allow all characters
$smwgPropertyInvalidCharacterList = array( );
Important noteImportant Note: This is a strongly discouraged setting.

See also