SID-01049: in which file is the WEBLIST rendered to HTML
| Status: |
Answered |
TWiki version: |
5.0.0 |
Perl version: |
newest i think |
| Category: |
CategoryPlugins |
Server OS: |
Ubuntu |
Last update: |
15 years ago |
Hello.
Ive just installed TWiki 5.0 and have been playing with it.
To meet my company's request im working on customizing the WEBLIST function.
after a few changes in the TWiki.pm file, I can now see the difference between the current Web im on, and the rest.
Now i'd like to use a different color for the current web, and ive been looking everywhere but cannot find:
Where is the WEBLIST rendered out to HTML?
I realize this isnt the best way to change a function, as it will be harder to upgrade to a never version, is there a way to override the weblist function so it won't be changed during a update?
--
JorgenEllefsen - 2010-12-06
Discussion and Answer
First, each web has a color defined in the web's
WebPreferences topic. Change that color per web if needed.
I do not recommend changing the code for WEBLIST. You probably do not need it. You can use the
format="" parameter to generate a custom output per web. Details in
VarWEBLIST. If you really want to change the code, look at subroutine
WEBLIST in twiki/lib/TWiki.pm
You could also use
VarSEARCH that searches across all webs.
In general I recommend reading the documentation. You can do a lot with TWiki without touching the code.
--
PeterThoeny - 2011-02-21
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.