Status: | effective |
Progress: | 100% |
Version: | 3.1.0+ |
$smwgFactboxFeatures
Configuration parameter details: | |
Name | $smwgFactboxFeatures |
Description | Sets the behaviour of features related to the factbox |
Default setting | See below |
Software | Semantic MediaWiki |
Since version | |
Until version | still available |
Configuration | Facts display · Interface settings |
Keyword | factbox |
__NOBREADCRUMBLINKS__
$smwgFactboxFeatures
is a configuration parameter that sets the behaviour of the features related to the factbox. The configuration parameter was introduced in Semantic MediaWiki 3.0.0Released on an unknown date unknown versions of MediaWiki1 and deprecated the configuration parameters as indicated in the section on available options below. It was further expanded in Semantic MediaWiki 3.1.0Released on an unknown date unknown versions of MediaWiki.2
Default setting
$smwgFactboxFeatures = SMW_FACTBOX_CACHE | SMW_FACTBOX_PURGE_REFRESH | SMW_FACTBOX_DISPLAY_SUBOBJECT | SMW_FACTBOX_DISPLAY_ATTACHMENT;
This means that the three respective features as explained in the following sections on available options are enabled.
Available options
SMW_FACTBOX_NONE
– Disables all factbox related featuresSMW_FACTBOX_CACHE
– Sets that the main cache should be used to avoid reparsing the content on each page view
SMW_FACTBOX_PURGE_REFRESH
– Sets that the faxtbox content should be refreshed when purging a page
SMW_FACTBOX_DISPLAY_SUBOBJECT
– Sets that the subobjects stored on a page should also be displayed when showing the factbox
- This option was introduced in Semantic MediaWiki 3.1.0Released on an unknown date unknown versions of MediaWiki.1
SMW_FACTBOX_DISPLAY_ATTACHMENT
– Sets that the links of files attached to a page should also be displayed when showing the factbox
- This option was introduced in Semantic MediaWiki 3.1.0Released on an unknown date unknown versions of MediaWiki.2
Changing the default setting
To modify the setting to this configuration parameter, add one of the following lines to your "LocalSettings.php" file after the enableSemantics()
call:
- Disable the display of subobjects
To disable a specific feature e.g. that subobjects should be shown just redefine the configuration parameter by defining it without including the corresponding constant as shown in the above section on available options:
$smwgFactboxFeatures = SMW_FACTBOX_CACHE | SMW_FACTBOX_PURGE_REFRESH | SMW_FACTBOX_DISPLAY_ATTACHMENT;
or alternatively remove the option from the existing definition of the configuration parameter like e.g.
$smwgFactboxFeatures = ( $smwgFactboxFeatures & ~SMW_FACTBOX_DISPLAY_SUBOBJECT );
- Removing all factbox related features
To remove all factbox related features just replace all constants with the one as shown below:
$smwgFactboxFeatures = SMW_FACTBOX_NONE;