I need to switch header-chunk of huge complex template from {{HEADER}} to {{HEADER_PRINT}} if $_GET[’type’] == "print" how can i do this ?
-
☆ A M B ☆
- 24,524 Posts
It’s easier to use CSS; in a media="print" css file you can use display:none; and any other css to customize the page to make it suitable for printing. No URL mangling, no snippets needed.
http://www.alistapart.com/articles/goingtoprint
http://www.alistapart.com/articles/alaprintstyles/
-
☆ A M B ☆
- 427 Posts
Sottwell is correct. CSS is definitely the way to go.
If you are wanting to display code or snippets on your page, I have snippets in the code / MODx Revolution section of my website to accomplish it.