Semantic MediaWiki and related extensions
Configuration

This file describes the configuration of the Semantic Breadcrumb Links (SBL) extension.

General

Note that the display of these aforementioned decendants is limited to 20 (1 shown directly and 19 via the dropdown) for best experience even though more may exist. This limit cannot be changed.

Styling

The output can easily be adjusted using the deployed styles (in res/sbl.styles.css) together with the available configuration settings.

Subpage

Default settings

```php $GLOBALS['egSBLBreadcrumbTrailStyleClass'] = 'sbl-breadcrumb-trail-light'; $GLOBALS['egSBLBreadcrumbDividerStyleClass'] = 'sbl-breadcrumb-arrow';

$GLOBALS['egSBLPageTitleToHideSubpageParent'] = true; $GLOBALS['egSBLEnabledSubpageParentAnnotation'] = true; $GLOBALS['egSBLDisableTranslationSubpageAnnotation'] = true;

$GLOBALS['egSBLTryToFindClosestDescendant'] = true; $GLOBALS['egSBLUseSubpageFinderFallback'] = true;

$GLOBALS['egSBLPropertySearchPatternByNamespace'] = [

// Search for a three level sub-category hierarchy
NS_CATEGORY => [
    '_SUBC',
    '_SUBC',
    '_SUBC'
],

// Search for a three level sub-property hierarchy
SMW_NS_PROPERTY => [
    '_SUBP',
    '_SUBP',
    '_SUBP'
],

// Search for a three level antecedent hierarchy that contains a `Has parent page`
// annotation to follow a `parent > grandparent > great-grandparent` schema
NS_MAIN => [
    SBL_PROP_PARENTPAGE,
    SBL_PROP_PARENTPAGE,
    SBL_PROP_PARENTPAGE
],
NS_HELP => [
    SBL_PROP_PARENTPAGE,
    SBL_PROP_PARENTPAGE,
    SBL_PROP_PARENTPAGE
]

];

### Other search strategies
```php
// Find a relationship on the first iteration using a `Has parent page` and
// if successful use this input to find a related category (`_INST`) in the
// following iteration
$GLOBALS['egSBLPropertySearchPatternByNamespace'][ NS_MAIN ] = [
SBL_PROP_PARENTPAGE,
'_INST'
];
// Match the category of a page and then for all succeeding steps
// try to match an associated sub-category to that category/sub-category
$GLOBALS['egSBLPropertySearchPatternByNamespace'][ NS_MAIN ] = [
'_INST',
'_SUBC',
'_SUBC'
];

About | General disclaimer | Privacy policy