[Bf-docboard] Navigation Plugin

Ewout Fernhout chocolade at extrapuur.nl
Tue May 9 18:47:16 CEST 2006


> Do we favor the "rule-based" approch or a "tag-based" approch?

I think I the tag-based approach works best. Having to add the tags to
all the existing pages is trivial IMO.

The problem to be solved is how to define the order in the tags
without having to change all the other pages/tags. Example: you have 5
pages in a sub-section, and you want to insert a new page between 2 &
3. If the tags contain the 'ordernumbers', you would have 2 pages "3".
You would then have to renumber 3, 4 & 5.
You could do it chain-wise, you define that the new page comes after
'page 2' (some kind of indicator), then you'd only have to change the
old 3.

None of these are user-friendly, so ideally there would be a
management tool that sets the order of the pages. This is stores it in
the db, and for the navigation it reads this db to check what pages
come before and after.

The tag would look like this (format could be completely different of
course! I don't know what's easy for you):
<navigation book="Manual" part="IV"/>

If we could avoid tags and make it an editing option that would be
even better. With drop down menus with existing books and parts and 
an "add new..." at the bottom (a bit like the "Apply label" menu in
GMail) >> two of those under the edit field! If that's not too hard, I
would prefer this over all the other options.

I'm just thinking aloud, but I hope this helps you in any way (and I
hope this invites others for discussion)

Ewout

p.s. What you said about learning code by doing, in dutch we have a
saying "the first house you build is for your enemy, the second is for
your friend, and the third is for yourself" >> you need to do it to
discover how to do it!


More information about the Bf-docboard mailing list