This question about Using an extension: Answered

redefining a template for a Web using a Topic


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


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
Version TWikiRelease04x01x02
Status Answered
Topic revision: r3 - 22 Oct 2009, AndrewJones - This page was cached on 13 May 2019 - 17:18.

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