[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: add more link's in html output
From: |
Per Bothner |
Subject: |
Re: add more link's in html output |
Date: |
Sun, 01 Jun 2003 15:53:24 -0700 |
User-agent: |
Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.4b) Gecko/20030507 |
Karl Berry wrote:
Hello Per,
"Site Navigation Bar", including "Top", "Up", "First",
"Previous:, "Next", "Last", "Document" and "More".
Sounds good.
Do you know of any documentation for this? Like exactly what the <link>
names are for each of these? And the difference between `top' and
`document', and between `next' and `more'?
Section 6.12 of the HTML 4.01 spec has a list:
http://www.w3.org/TR/html4/types.html#type-links
I guess maybe `more' is like
hitting SPC to read more of the current node? I wouldn't know how to
implement that.
No, "More" in the context of Mozilla Site Navigation Bar just means
"any other less-common link types".
However, it might be worth considering adding some javascript to
handle info-style keystrokes. For example, in my online photo-album
I cause 'n' and 'p' to go to the next and previous photo,
respectively. This obviously isn't 100% portable, but it's an
optional convenience feature, and it works in Mozilla and (at
least) IE 5.2 (Mac version). For an example, see:
http://pics.bothner.com/2003/BaylandsMV/BaylandsMV2.html
(This also has the Navigation Bar links I'm talking about.)
I took a look at what was involved in implementing this,
but it's not clear to me how it should be done.
For next/prev/up, I think the right thing to do is call add_link for the
various cases in node.c (where the <a rel=... stuff is output now). For
the others (that are document-wide), I guess they'd only have to
output once at the end of the document ...
The problem is that the <link> element can only appear in the
html <head>, so must be done by html_output_head.
--
--Per Bothner
address@hidden http://per.bothner.com/