Printlink - print specified page

Discussions and requests related to new CMSimple features, plugins, templates etc. and how to develop.
Please don't ask for support at this forums!
Post Reply
Tata
Posts: 3586
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia
Contact:

Printlink - print specified page

Post by Tata » Fri Aug 17, 2018 12:56 pm

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>
You do not have the required permissions to view the files attached to this post.
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.

Post Reply