Tags:
create new tag
view all tags

SID-01049: in which file is the WEBLIST rendered to HTML

Status: Answered 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

      Change status to:
ALERT! 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.
SupportForm
Status Answered
Title in which file is the WEBLIST rendered to HTML
SupportCategory CategoryPlugins
TWiki version 5.0.0
Server OS Ubuntu
Web server Apache
Perl version newest i think
Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2011-02-21 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.