Page 1 of 1

Printlink - print specified page

Posted: Fri Aug 17, 2018 12:56 pm
by Tata
print-button.jpg
This is a newsbox with a hidden page shown as a part of newsbox content (red frame). Test at http://ukastelana.cmsimple.sk/

Code: Select all

<div class="actual" id="actual"><div class="print_btn">'.printlink().'</div>'.newsbox('000_denne_menu').tag('br').'</div>';
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

Code: Select all

<div class="print_style">#CMSimple $hjs .= chr(60) . 'link rel="stylesheet" href="' . $pth['folder']['template'] . 'dailymenu.css"' . chr(62);#</div>
How to?

EDIT: SOLVED
Using a simple link to "mypage&print" is the solution

Code: Select all

<div class="print_btn">
    <a href="?000_denne_menu&amp;print">VYTLAČIŤ</a>
        </div>'.newsbox('000_denne_menu').tag('br').'</div>
</div>