Ticket #262 (new enhancement)
TracNav footer navigation bar
| Reported by: | jwilliams@… | Owned by: | moschny |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | trac.tracnav | Version: | |
| Severity: | normal | Keywords: | |
| Cc: |
Description
Prev/Next navigation footer for TracNav?
How about a [[TracNavFooter(TOC)]] macro, that renders a page-specific navigation bar to the previous, next and "parent" page in the heirarchy defined by the TOC?
Users adding this macro to the bottom (or top) of each wiki page would give a nice ability for sequential navigation.
This info is already parsed out by the TracNav macro, would just be slightly different way of rendering it.
Attachments
Change History
comment:2 Changed 7 years ago by jwilliams@…
In the cases you mention, I would suggest:
- If the current page is not in the TOC, then either give a warning text output:
WARNING: Current page (pagename) not part of TOC (TOCpage)
alternatively, just fail silently and produce no output at all.
- For next/prev/parent, if there are multiple possibilities, the simplest approach is to fail! For a preliminary release it might be OK to just say "The TracNavFooter requires that the following be true:" and include "only linear/sequential TOCs are supported".
More complex behaviours are certainly possible - for example does Trac drop cookies that allow the footer to detect the navigation path "into" the page? That could be used to resolve ambiguity, at some complexity cost.

Interesting proposal, but there are some open questions: