SID-01870: Searching for webs
| Status: |
Answered |
TWiki version: |
6.0.0 |
Perl version: |
5 |
| Category: |
TopMenuSkin |
Server OS: |
RHEL5 |
Last update: |
12 years ago |
I am aware of
VarWEBLIST but cannot work out how to search for webs starting with a letter. Any ideas if this is possible?
To explain, we are upgrading from TWiki4 to TWiki6. We have over 80 active webs so would like a home menu which has alphabetical categories and corresponding submenus listing the webs i.e.
- Webs A-C
- Webs D-F
- Webs G-I *.........
Would like the submenus listing the webs to be generated dynamically either through the WEBLIST variable or via search.
Is this possible?
--
Seeta Patel - 2014-02-10
Discussion and Answer
Two things need to be done to accomplish what you want:
- Create an indented web list grouped by alphabet
- Show the indented web in the Home menu
1. Create an indented web list grouped by alphabet:
The first part can be done with
VarWEBLIST and a somewhat complicated
VarCALCULATE. The complication comes from the fact that the
SpreadSheetPlugin eats leading spaces in parameters, whereas a bullet list requires leading spaces.
Here is an example showing the TWiki.org webs bucketized by alphabet:
- B webs:
- C webs:
- M webs:
- P webs:
- S webs:
- T webs:
- W webs:
(Look at the raw text to see how this works.)
You could use the
TreeBrowserPlugin to get multi-level menus, e.g. a collapseable tree.
2. Show the indented web in the Home menu:
The
TopMenuPlugin currently does not support indented menu items, so you cannot show the indented bullet list as menu items. You could
hire a TWiki consultant if this feature is important to you. This is a good way to support the open source TWiki community.
--
Peter Thoeny - 2014-02-10
Thanks for the prompt reply Peter.
--
Seeta Patel - 2014-02-10
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.