print version→ false page breaks Topic is solved

Everything to do with Joomla! 3.x templates and templating.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Post Reply
s-de-haan
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Tue Jun 15, 2021 5:49 pm

print version→ false page breaks

Post by s-de-haan » Tue Jun 22, 2021 1:30 pm

Hi everyone,

My problem with my joomla site is it inserts page breaks where it shouldn't and ommit page breaks where it should. The result is a print of 5 pages which actually also fits on 3 pages. In the print there is an empty page (only (print) header and footer), a page with the logo on top and nothing more, a normal page, and in the end a page which is two pages printed over one another. This is all exactly as the browser shows in the print preview.
My site is https://devisser-kant.nl/bewindvoering so you see what I mean. (On some pages the print version is fine, like https://devisser-kant.nl/ )
My site was built in jl_startup_free
I tried to solve the problem by adding style declarations in custom.css Also I attempted to undo some style declarations from bootstrap.css and theme.css by writing something like "undo" in my custom.css
I tried things like:
@media print {
.tm-header {
page-break-after: avoid;
}
#tm-main, #tm-main div, #tm-main div div, #tm-main div div div, #tm-content, #tm-content article, #tm-main aside {
page-break-inside: initial;
page-break-before: avoid;
}
}
But unfortunately...
Can anyone help?

User avatar
JTema
Joomla! Guru
Joomla! Guru
Posts: 661
Joined: Sun Apr 13, 2008 8:10 pm

Re: print version→ false page breaks

Post by JTema » Wed Jun 23, 2021 6:07 am

Activate print icon for some of articles so we can inspect print preview page.
http://www.joomlatema.net - Joomla Extensions and Templates
https://andalusa.joomlatema.net - Andalusa Professional Responsive Joomla Template

s-de-haan
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Tue Jun 15, 2021 5:49 pm

Re: print version→ false page breaks

Post by s-de-haan » Thu Jun 24, 2021 7:28 pm

First of all, thank you for this tip.
I put the link on all pages now. It is the blue link in Dutch, on the bottom of each article: "Afdrukken".
Meanwhile I see that this is another "print version" than I was working on. For this print version doesn't show any logo on top or boxes on the bottom; it shows only the article itself, without any problem.
The print version that I was working on, is when you just use the browser's print function (ctrl-p). And again, a proper example can be found on https://devisser-kant.nl/

User avatar
JTema
Joomla! Guru
Joomla! Guru
Posts: 661
Joined: Sun Apr 13, 2008 8:10 pm

Re: print version→ false page breaks

Post by JTema » Thu Jun 24, 2021 7:50 pm

There is no problem with browser print page with chrome on my PC see screenshots
You do not have the required permissions to view the files attached to this post.
http://www.joomlatema.net - Joomla Extensions and Templates
https://andalusa.joomlatema.net - Andalusa Professional Responsive Joomla Template

s-de-haan
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Tue Jun 15, 2021 5:49 pm

Re: print version→ false page breaks

Post by s-de-haan » Fri Jun 25, 2021 7:11 pm

Hmm. Thank you for your tip. Some way the idea didn't pop into my mind to test this in a different browser.
This means that the browser print page does work properly in Chrome, Opera and Edge, but does not in Firefox.
In that case my problem is solved, I think.


Post Reply

Return to “Templates for Joomla! 3.x”