Trouble printing web pages in Yola

  • 1
  • Problem
  • Updated 7 years ago
  • In Progress
I have a simple task. I just want to print the pages of my website. I've played with the settings in Firefox, IE and Chrome. But Yola only prints a portion of the web page, no matter what browser I use.

How do you do this? Yola is a great system and I am recommending it to clients but they are getting frustrated with these printing problems.
Thx
Leo Legaspi
Photo of Leo Legaspi

Leo Legaspi

  • 3 Posts
  • 0 Reply Likes

Posted 7 years ago

  • 1
Photo of smithy

smithy

  • 1222 Posts
  • 28 Reply Likes
ok why don't u use a onload print thing.

<!--

<script language="Javascript1.2">
<!--
function printpage() {
window.print();
}
//-->

-->

or this code

<!--
<a href="JavaScript:window.print();">Print this page</a>
-->

ignore <!-- and -->. they are there so the forum don't read the code

click this link to see print codes and what they do. Print code and tutorial
Photo of Nathan

Nathan, Champion

  • 3739 Posts
  • 307 Reply Likes
Smithy, just to let you know, you can now use <code></code> tags. GS fixed the problems with code tags. Here's an example:


<strong>I am bold.</strong>
<em>I am italics.</em>


Sincerely,
Nathan
Photo of smithy

smithy

  • 1222 Posts
  • 28 Reply Likes
ok ty for lettign me know
Photo of Nathan

Nathan, Champion

  • 3739 Posts
  • 307 Reply Likes
No problem.
Photo of Sanja

Sanja, Official Rep

  • 10698 Posts
  • 495 Reply Likes
Thanks Smithy for the suggestion! I hope this helps Leo.
Photo of Nathan

Nathan, Champion

  • 3739 Posts
  • 307 Reply Likes
Thanks Smithy for the help! :) But, I found a tiny problem with the JavaScript code that might break the page because it doesn't have an ending tag. Here is the code with the ending tag in it:


<script type="text/javascript">
function printpage() {
window.print();
}
</script>

<a href="#" onclick="printpage(); return false;">Print this Page</a>



or:


<a href="#" onclick="window.print(); return false;">Print this Page</a>



Place one of the above codes into an HTML widget on your page where you want the link to appear.

Note: The "return false;" in there is just so when you click the link, it doesn't put a hash (#) mark right after the URL in the address bar.