Printlink - print specified page
Posted: Fri Aug 17, 2018 12:56 pm
http://ukastelana.cmsimple.sk/
There is put also the "print link" top right. It shows, however, always the actual active page. I would need that it would print only the page shown in the newsbox. The page has its own style defined and called on the page by
How to?
EDIT: SOLVED
Using a simple link to "mypage&print" is the solution
This is a newsbox with a hidden page shown as a part of newsbox content (red frame). Test at Code: Select all
<div class="actual" id="actual"><div class="print_btn">'.printlink().'</div>'.newsbox('000_denne_menu').tag('br').'</div>';
Code: Select all
<div class="print_style">#CMSimple $hjs .= chr(60) . 'link rel="stylesheet" href="' . $pth['folder']['template'] . 'dailymenu.css"' . chr(62);#</div>
EDIT: SOLVED
Using a simple link to "mypage&print" is the solution
Code: Select all
<div class="print_btn">
<a href="?000_denne_menu&print">VYTLAČIŤ</a>
</div>'.newsbox('000_denne_menu').tag('br').'</div>
</div>