cross
New Foswiki release 2.1.6 is available with important security fixes.
Sourceforge foswiki email lists being discontinued. Subscribe to the new Foswiki announce and discuss lists at MailingLists
This question about Using an extension: Answered

redefining a template for a Web using a Topic

Hello,

I would like to override the template "printable_link" so that the "Printable" button will link to something defined by me. I would like to do it only for a given Web, redefining only printable_link in a Topic.

I cannot find how to name correctly the Topic in the given Web and I don't even know what it should contain. I tried with a topic named PatternSkinTemplate , not working, then PatternSkinViewTemplate , not working, then ViewTemplate , not working frown My template Topic was just containing the following:

%TMPL:DEF{"printable_link"}%<span class='patternButton'><a href='/cgi-bin/view/Support/SID-00545?template=DpSpecPrintable%QUERYPARAMSTRING%' rel='nofollow' title='Printable version of this topic' accesskey='p'g t;P rintable</a></span>%TMPL:END%

without redefining any other template nor including any other template file.

Please tell me what's the right name of Topic I should give and contents it should have.

Many thanks in advance

Best Regards

Daniele


Accepted Answer

Maybe you can learn from the Best Practice application in the Support web: The view template topic is BestPracticeTipsViewTemplate and it is set the following way:

* Local VIEW_TEMPLATE = BestPracticeTipsView

-- OliverKrueger - 09 Oct 2009

QuestionForm edit

Subject Using an extension
Extension
Version TWikiRelease04x01x02
Status Answered
Topic revision: r3 - 22 Oct 2009, AndrewJones - This page was cached on 22 Aug 2018 - 03:42.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy