How to hide part of article in printable version

Author Message

Ted Striker

Saturday 31 July 2004 7:44:57 am

Hello!

How can I hide part of an artcle when the main layout is printlaout.tpl and not pagelayout, obviously the part I need to hide is the print button :)

Is there anyway to know which templates has been executed?

Thanks!

Can you feel it Mr. Anderson? Closing in on you? Oh I can, I really should thank you after all. It was, after all, it was your life that taught me the purpose of all life. Purpose of life is to end.

Ole Morten Halvorsen

Tuesday 10 August 2004 1:25:37 am

Ted,

You can create your own stylesheet used when printing.
Example:

@import url({'stylesheets/print.css}|ezdesign(no)} print;

Now, in your article template add a <div> around your button or whatever you want to hide and in your print.css set the display property to none:

div.hidebutton { display: none; }

Ole M.

Senior Software Engineer - Vision with Technology

http://www.visionwt.com
http://www.omh.cc
http://www.twitter.com/omh

eZ Certified Developer
http://ez.no/certification/verify/358441
http://ez.no/certification/verify/272578

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.