MediaWiki Extension JSBreadCrumbs: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
(Created page with "=External= =Internal= * https://www.mediawiki.org/wiki/Extension:JSBreadCrumbs")
 
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
=External=
=External=
* https://www.mediawiki.org/wiki/Extension:JSBreadCrumbs
=Internal=
=Internal=
* https://www.mediawiki.org/wiki/Extension:JSBreadCrumbs
* [[Media_Wiki_Concepts#JSBreadCrumbs|Media Wiki Concept]]
 
=Installation=
 
Follow https://www.mediawiki.org/wiki/Extension:JSBreadCrumbs instructions.
 
Untar.
 
Add to the bottom of <code>LocalSettings.php</code>:
 
<syntaxhighlight lang='php'>
wfLoadExtension( 'JSBreadCrumbs' );
</syntaxhighlight>
 
=Configuration=
 
To change "Last x Pages Viewed" update <code>JSBreadCrumbs/i18n/en.json</code>.
 
To change he separator ("»"), update <code>JSBreadCrumbs/i18n/en.json</code> or <code>LocalSettings.php</code> <code>$wgJSBreadCrumbsHorizontalSeparator</code>
 
To change the gray background and border: <font color=darkkhaki>TODO</font>
 
To change the number of breadcrumbs:
 
<syntaxhighlight lang='php'>
$wgDefaultUserOptions['jsbreadcrumbs-numberofcrumbs'] = 6;
</syntaxhighlight>

Latest revision as of 04:55, 1 January 2024

External

Internal

Installation

Follow https://www.mediawiki.org/wiki/Extension:JSBreadCrumbs instructions.

Untar.

Add to the bottom of LocalSettings.php:

wfLoadExtension( 'JSBreadCrumbs' );

Configuration

To change "Last x Pages Viewed" update JSBreadCrumbs/i18n/en.json.

To change he separator ("»"), update JSBreadCrumbs/i18n/en.json or LocalSettings.php $wgJSBreadCrumbsHorizontalSeparator

To change the gray background and border: TODO

To change the number of breadcrumbs:

$wgDefaultUserOptions['jsbreadcrumbs-numberofcrumbs'] = 6;