Johannes Schaefer wrote: > Dmitri Pissarenko wrote: > >> Hello! >> >> I have about 50 text files, which are chapters of a larger text. >> >> I want to create a website, on which each of these texts is shown in a >> separate HTML file >> >> and in each of these files there are navigation buttons (links to next >> and previous >> >> chapter). >> >> I want to create those navigation links automatically. >> >> Is there an (easy) way to do it in Apache Forrest? >> >> Thanks in advance >> >> dap > > > I would be very interested in "back|next", too. > We have a solution for a link "back to top", if you're > interested ... Forrest cannot currently do this by default so I've copied this to the dev list since there is a partial solution below: I have a skin that does this (actually I broke the "back" section, but next works, back used to work, I just haven't had time to fix it). This is another of a long line of things that I have been trying to find the time to tidy up and commit to Forrest. If you know XSL then you could have a go at making my partial solution work properly and I'll put it into Forrest (with a property to make it optional of course). Here is the relevant XSL code from site2xhtml.xsl: Next: (Last in Section - choose a new section from the menu) Just call this template to generate the link(s) in the relevant location on your document. Ross