Semantic MediaWiki default settings

From SaruWiki
Jump to navigation Jump to search

Out of the box, SMW has some hardcoded settings that you might want to change. What we use is

SMW 1.5.1.1

  • in SemanticMediaWiki/includes/SMW_RefreshTab.php:
    • line 22 change if ( $wgUser->isAllowed( 'delete' ) ) to if ( $wgUser->isAllowed( 'purge' ) )
      This means that the refresh tab appears for all users that have the purge right (often given to standard users) instead of delete right (which is usually reserved for administrators and the like)
  • in SemanticMediaWiki/SMW_Settings.php:
    • line 216 change $smwgQMaxSize = 12; to $smwgQMaxSize = 14;
    • line 217 change $smwgQMaxDepth = 4; to $smwgQMaxDepth = 5;
      These changes increase search depth and number of search terms, which are needed for some queries of the DIR.