Tags:
create new tag
view all tags

Question

The default "print" view of the "pattern" skin is a bit derouting for my first-time users as they expect it to print.

Environment

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

-- GillesEricDescamps - 27 Oct 2004

Answer

I added a few lines at the end of: templates/view.print.pattern.tmpl

%TMPL:P{"bodyend"}%
<script type="text/javascript">
<!-- HIDE
        this.print()
// -->
</script>
%TMPL:END%

So that when you click on printable, the view of the pattern skin will change to "printable", but also the OS print popup dialog will appear.

-- GillesEricDescamps - 27 Oct 2004

Topic revision: r1 - 2004-10-27 - GillesEricDescamps
 
  • 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.