There is now a better solution to this. Check out SpecialLinksOffTopBar.
Add the Site Index and a Printer Friendly version of the page. The Site Index may be slow, but other operations do it, and it is very useful for small to medium wiki - especially in getting them being used by the team. The Printer Friendly version will be more important when the side bar menu is done.
--- wiki.1.0.0.pl Thu Sep 12 10:53:14 2002
+++ ..\wikipatch.IndexAndPrinterOnBar.pl Fri Dec 12 11:18:47 2003
@@ -1217,10 +1217,14 @@
sub GetRandomLink {
return &ScriptLink("action=random", T('Random Page'));
}
+sub GetIndexLink {
+ return &ScriptLink("action=index", T('SiteIndex'));
+}
+
sub ScriptLinkDiff {
my ($diff, $id, $text, $rev) = @_;
$rev = "&revision=$rev" if ($rev ne "");
$diff = &GetParam("defaultdiff", 1) if ($diff == 4);
@@ -1277,10 +1281,21 @@
$id =~ s/ /_/g;
}
return &ScriptLink("action=history&id=$id", $text);
}
+sub GetPrinterFriendlyLink {
+ my ($id) = @_;
+
+ my $action = lc(&GetParam('action', ''));
+
+ if ($action) {
+ return &ScriptLink("action=$action&id=$id&embed=1", T('Printer Friendly'));
+ } else {
+ return &ScriptLink("action=browse&id=$id&embed=1", T('Printer Friendly'));
+ }
+}
sub GetHeader {
my ($id, $title, $oldId) = @_;
my $header = "";
my $logoImage = "";
my $result = "";
@@ -1482,10 +1497,13 @@
$bartext .= " | " . &GetPageLink($RCName);
$bartext .= " | " . &GetPrefsLink();
if ($UseUpload && &UserCanUpload()) {
$bartext .= " | " . &GetUploadLink();
}
+ $bartext .= " | " . &GetIndexLink();
+ $bartext .= " | " . &GetPrinterFriendlyLink($id);
+
if (&GetParam("linkrandom", 0)) {
$bartext .= " | " . &GetRandomLink();
}
if ($UserGotoBar ne '') {
$bartext .= " | " . $UserGotoBar;