Hi!

Attached is a patch file and two new tmpls to be put in tmpl/custom/html/

patch:
I added a small check to the printing of body sections in page_body:
if the current section is the last section, then instead of the TOP-link the
new navbar_local_bottom will be displayed. Else, the normal TOP-link

navbar_local_bottom:
looks a lot like navbar_local, only that instead of the download widget the
TOP-link is displayed

top_link:
displays the TOP-link


Stas, you can remove navbar_local_alt from the CVS, as it is "alt" meaning
"old" (in german).



-- 
 D_OMM      +---->  http://domm.zsi.at <-----+
 O_xyderkes |       neu:  Arbeitsplatz       |   
 M_echanen  | http://domm.zsi.at/d/d162.html |
 M_asteuei  +--------------------------------+


Index: tmpl/custom/html/page_body
===================================================================
RCS file: /home/cvspublic/modperl-docs/tmpl/custom/html/page_body,v
retrieving revision 1.9
diff -u -r1.9 page_body
--- tmpl/custom/html/page_body  28 Jan 2002 07:02:26 -0000      1.9
+++ tmpl/custom/html/page_body  29 Jan 2002 20:19:31 -0000
@@ -21,14 +21,16 @@
     FOREACH sec = doc.body;
         sec;
         "<br><br>";
-        menu;
+        IF loop.count == loop.size;
+            INCLUDE navbar_local_bottom
+                nav=doc.nav
+                rel_doc_root=doc.dir.rel_doc_root;
+        ELSE;
+            INCLUDE top_link;
+        END;
         "<br><br>";
     END;
     "<!-- SwishCommand noindex -->";
-
-    INCLUDE navbar_local
-        nav=doc.nav
-        rel_doc_root=doc.dir.rel_doc_root;
 %]
 </div>
 <!-- end content-->
[% # '<=prev | up | next=>' chapters navigation bar
   # expects to be set 
   # nav          - cache navigator object
   # rel_doc_root - relative docs path
%]
<table width=100% border=0>
<tr>
<td align="left">
[% INCLUDE top_link %]
</td>
<td align="right">
<div class="navbarlocal">
[% 
   prev = nav.prev;
   IF prev;
        link = INCLUDE link prefix=rel_doc_root link=prev.meta.link;
        "<a href='$link'><img src='${doc.dir.abs_doc_root}/images/prev.gif' 
ALT='prev' border=0 width=48 heigth=20></a>";
   END;
%]<a href='[% rel_doc_root %]/index.html'><img src='[% doc.dir.abs_doc_root 
%]/images/up.gif' ALT='up' border=0 heigth=20 width=25></a>[% 
   next = nav.next;
   IF next;
        link = INCLUDE link prefix=rel_doc_root link=next.meta.link;
        "<a href='$link'><img src='${doc.dir.abs_doc_root}/images/next.gif' 
ALT='next' border=0 width=49 heigth=20></a>";
   END;
%]
</div></td>
</tr></table>



<a href='#top'><img src='[% doc.dir.abs_doc_root %]/images/top.gif' width=51 
height=20 border=0 alt='TOP'></a>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to