Tags:
create new tag
, view all tags

Question

I want to create a custom skin based on the dragon skin. I follow the recomendation in the TWikiSkins topic and base my custom 'ap' skin on the dragon skin by copying view.dragon.tmpl to view.ap.tmpl. Then I open a topic, then I add ?skin=ap to the url address, but the topic doesn't render like the dragon skin. Rather it seems to have no format, and more importantly, the left navigation panel is missing. I really would appreciate a pointer to step by step (or HelloWorld) type example for creating a skin.

Environment

TWiki version: TWikiRelease04x00x05
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: HP-UX hp2 B.11.11 U 9000/800
Web server: Apache 3.0.99-563
Perl version: 5.005, 5.6.1
Client OS: Win XP Pro SP4
Web Browser: MS Internet Explorer 6
Categories: Skin

-- RalphEllison - 08 Jan 2007

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.

what you're missing, is that view.SKIN.tmpl is not the only file that is used to generate the output.

if the view template is truly the only thing you want to over-ride, then you can just edit as you have, and then set ?skin=ap,dragon

What this does is to look for *.ap.tmpl templates first, and then fall back to *.dragon.tmpl resulting in (at minimum view.ap.tmpl and then twiki.dragon.tmpl )

I'm doing work to simplify this for twiki 4.1, (see http://blog.wikiring.com ), but you should also not that DragonSkin seems not to have been publicly updated since 2004, and so does not quite work right for twiki-4.

-- SvenDowideit - 08 Jan 2007

Regarding what I want to do, my priorities are - hide certain links from the header (Attach) and footer (Kupu, Attach, PDF, Raw Text) both in view and edit. - when a topice contains a form, in view, hide the form, and in edit hide the big empty text area.

As a starting point I want to get on the learning curve by doing a copy paste of some existing skin and then experiment. (Thinks: I would also like to learn how the skin-template-script machinery works, in an orderly fashion, but find the reference topics of limited assistance.)

Any assistance would be appreciated smile

-- RalphEllison - 08 Jan 2007

Sorry, closing after more than 30 days...

-- PeterThoeny - 02 Mar 2007

 
Change status to:
Topic revision: r4 - 2007-03-02 - 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.