--- modern_orig.py	2007-01-21 21:52:18.000000000 +0100
+++ modern.py	2007-01-21 22:13:22.000000000 +0100
@@ -12,6 +12,32 @@
 
     name = "modern"
 
+    def backlink (self, d):
+        """
+        Assemble the back button
+        
+        @param d: parameter dictionary
+        @rtype: string
+        @return: backbutton html
+        """
+        _ = self.request.getText
+        html = ''
+
+        show_backlink = False
+        backlink_table = []
+        if hasattr(self.request.cfg, 'show_backlink') and hasattr(self.request.cfg, 'backlink_table'):
+            show_backlink = self.request.cfg.show_backlink
+            backlink_table = self.request.cfg.backlink_table
+
+        if show_backlink and backlink_table:
+            pageurl = self.request.query_string
+            for item in backlink_table:
+                if pageurl.find(item) != -1:
+                    backlink = d['page'].link_to(self.request, text=_('Return to page content'), querystr='action=show')
+                    html = '[%s]' % backlink
+                    break
+        return html
+
     def header(self, d, **kw):
         """ Assemble wiki header
         
@@ -45,6 +71,7 @@
 
             # Start of page
             self.startPage(),
+            self.backlink(d),
         ]
         return u'\n'.join(html)
 
@@ -85,6 +112,7 @@
         html = [
             # End of page
             self.pageinfo(page),
+            self.backlink(d),
             self.endPage(),
 
             # Pre footer custom html (not recommended!)
