Tags:
create new tag
, view all tags

Question

How do I override the WebLeftBar topic with my own?

I can create a personal sidebar. And TWiki/PatternSkinCustomization provides ways to hide the left bar. But how do I override it completely with my on choices?

Environment

TWiki version: unspecified
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS:  
Web server:  
Perl version:  
Client OS:  
Web Browser:  
Categories: Skin

-- VickiBrown - 19 Mar 2008

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.

A co-worker asked this and I worked it out. Now I can use my favorite web's look and feel across our entire site.

This works with Pattern Skin

Step 1

Create your web left bar definition. For this example, the page is named Myweb.MyWebLeftBar.

Refer to WebLeftBar or ModifyingWebLeftBar for ideas.

Step 2

Create a View override template, e.g. Myweb.MyViewTemplate, overriding the definition of webleftbar with your topic.

%TMPL:INCLUDE{"view"}%

%TMPL:DEF{"webleftbar"}%
%INCLUDE{"Myweb.MyWebLeftBar"}%%TMPL:END%

Step 3

Set the VIEW_TEMPLATE variable in your home topic to use your view template instead of the default.

   Set VIEW_TEMPLATE = Myweb.MyViewTemplate

-- VickiBrown - 19 Mar 2008

Should be:

   * Set VIEW_TEMPLATE = Myweb.MyView

-- TimothyBourke - 2011-05-03

 
Change status to:
Topic revision: r4 - 2011-05-03 - PeterThoeny
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.