SID-00067: How do I create horizontal menus
| Status: |
Answered |
TWiki version: |
4.2.3 |
Perl version: |
5.8 |
| Category: |
CategoryRendering |
Server OS: |
debian |
Last update: |
16 years ago |
I want to render this:
As
Example 1:
One |
Two |
Three
Or preferably (note the use of the title tag: hover over the number)
Example 2:
1 |
2 |
3
This is useful when you split a large document up over a dozen chapters. The horizontal menu allows easy navigation between chapters.
Example 1 can be achieved with a div and styles. It works OK if the chapter titles are short words and there are few chapters. It looks lousy when the chapter titles are meaningful and there are many, because the horizontal menu runs over a couple of lines and is hard to read.
Example 2 can not be achieved with a div and styles, because the title (and in IE the alt) tag need to be inserted. On the other hand this type of menu can fit the whole alphabet on a line. Visitors that refer to the page often remember what the numbers mean. And infrequent visitors get help through the title tag.
I checked the plugins and cannot find a Plugin that does this. Should I write one. Or pick one and extend it? if the latter: Which one?
If I wrote it it could work as follows:
%HORIZONTALMENU{ options here }%
* [[#AnchorOne][One]]
* [[#AnchorTwo][Two]]
* [[#AnchhorThree][Three]]
%ENDHORIZONTALMENU%
Options could be:
- numeric - presenting the menu as 1 | 2 | 3
- alphabetic - presenting the menu as A | B | C
- abbreviated=2 - presenting the menu as On | Tw | Th
- extended - where the plugin accepts the notation [[#AnchorOne][Ch1:One]]
Any suggestions on how to proceed?
- Is there a plugin that does this
- is there a plugin that I should extend
- shall I write a new pluginalong the lines above?
One is here
Two is here
Three is here
--
BramVanOosterhout - 30 Jan 2009
Discussion and Answer
See the Title attribute in
LinkOptionsPlugin for the mouseover text.
Then you can build a set of menu items with the list functions of
SpreadSheetPlugin
--
SeanCMorgan - 13 Feb 2009
See also
NavBarAddOn,
TabbedBrowsing.
--
PeterThoeny - 13 Feb 2009
Closing this question after more than 30 days of inactivity. Feel free to reopen if needed. Consider engaging one of the
TWiki consultants if you need timely help. We invite you to
get involved with the community, it is more likely you get community support if you support the open source project!
--
PeterThoeny - 2009-04-17
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.