\CompactNavigator
CompactNavigator adds a new method to Content Controller, this can be used instead of the default Silverstripe Navigator. It is a lot more compact, obscuring very little of your site and also works correctly in IE6.
CompactNavigator uses a template called CompactNavigator.ss that can be overwritten in your
theme, if you require a customised layout.
To add CompactNavigation to your template, you need to add $SSCompactNavigator to your
template. Ideally either:
After your <body> tag or
Before your </body> tag
Synopsis
class CompactNavigator
extends Extension
{
- // members
- protected $dataRecord;
- protected static $adminLink $adminLink = 'admin';
- public static String $Template;
- public static relative $CssTheme;
- public static relative $JsTheme;
- // methods
- public void SSCompactNavigator()
Hierarchy
Extends
- Extension
Tasks
Line | Task |
---|---|
18+ | add check for user generated styles or javascript, and if they exist, load them instead. |
+ | Ensure that just adding CompactNavigator.ss to your theme will automatically overwrite the default |
Members
protected
- $adminLink — $adminLink
- $dataRecord
public
- $CssTheme
—
relative
Setting CssTheme allows you to add a custom CSS file, instead of using the default one. - $JsTheme
—
relative
Setting JsTheme allows you to add a custom JavaScript file, instead of using the default one. - $Template
—
String
Setting the Template static will allow you to use your own custom template files, that overwrite the default behaviour.