 |
Forums |
Admin Discussion Forums: help Start New Thread
By: John Plumridge
RE: section's order of links in menu [ reply ] 2010-06-17 19:46
|
It seems like webbgen has the best of what webmake (an old script by now) has. It offers the advantage of more than ettext as markup, out of the box too, as well as the neat 2-level menu.
I think I'll just get to work on prev next links. I suppose they use the same sort_info metadata
|
By: John Plumridge
RE: section's order of links in menu [ reply ] 2010-06-17 19:10
|
Thank you Mr Leitner.
That's why webgen is so good for me. It really works with hypertext, I can see then.
( BTW. couldn't find this info in the docs and the forum messages - I shall look again at the section on meta information then).
The only other system of flat file generation that I've found that works so well with hypertext is webmake, and it really does work ( a perl script). I was considering taking a further look at htmldoc to see if it can get the job done, too... but it seems I have an elegant solution here.
Thank you.
|
By: Thomas Leitner
RE: section's order of links in menu [ reply ] 2010-06-17 18:38
|
If the meta information sort_info is not set on a page (or on any other file), webgen defaults to using the title as sort key. So just set sort_info correctly on all pages and you are good to go. I recommend using numbers as sort_info value.
The link_attrs meta information is just for setting additional key-value pairs on generated links, it has nothing to do with how the menu gets sorted.
|
By: John Plumridge
section's order of links in menu [ reply ] 2010-06-17 13:07
|
Hi,
Webby's navigation looks good from the start.
I'd like to order a section's links in the menu according to the document flow, and not the alphabetical order, E.g
Introduction
Bckground
An Interesting doc
I use link attributes, but it comes out alphabetical. Can it be easily achieved, and how?
I assume tab index is for order of keyboard tabbing between links?
E.g.
---
titile: Great Read
in_menu: true
link_attrs:
title: Activities
tabindex: 5
|
|
 |