1. Pappy
  2. Sherlock Holmes
  3. Commercial Templates
  4. Monday, 12 December 2022
  5.  Subscribe via email
Since Joomla 4 removed the email/print buttons, what is the easiest way to add a print button for just the content, not the entire page?

Thanks,
Mark
Accepted Answer Pending Moderation
0
Votes
Undo
Here, for example, a solution was presented in this German forum. this should be something that suits your needs. I don't have a simple solution like you might want. I don't know of any extensions that can do this either.
Maybe someone else here knows something better...

Link: https://forum.joomla.de/thread/14497-drucken-von-beitr%C3%A4gen/?postID=94501#post94501
  1. more than a month ago
  2. Commercial Templates
  3. # 1
Accepted Answer Pending Moderation
0
Votes
Undo
I appreciate the info but this solution just triggers the browser print screen.

This works but is bulky.... Is there a way to only display #main_content instead of hiding everything?


@media print {
#container_bottom1_modules, #container_header {display: none;}
}
  1. more than a month ago
  2. Commercial Templates
  3. # 2
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Mark

Would you have a URL to an example of your page?

Ciaran
  1. more than a month ago
  2. Commercial Templates
  3. # 3
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Ciaran,
It is used in a private intranet.

We are using the Riley template - J4

media print / display: none seems to be the way to do it.

Just wondering if there was better way.

The print function in J3 made it easy, as they just want to print the content. Odd they removed it in J4.

Thanks,
Mark
  1. more than a month ago
  2. Commercial Templates
  3. # 4
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Mark

A slightly simpler alternative to your CSS would be something like the following...

body > * {
display: none;
}
#container_main {
display: block;
}


So here you are hiding everything and then displaying the main content area.

Ciaran
  1. more than a month ago
  2. Commercial Templates
  3. # 5
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!

Join Our Newsletter

* indicates required
We respect your privacy and do not tolerate spam and will never sell, rent, lease or give away your information (name, email, number, etc.) to any third party. Nor will we send you unsolicited email.
Joomla51 - Mullaghmore, Co. Sligo, Ireland
Joomla51.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by
Open Source Matters
the trademark holder in the United States and other countries.

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.

Ok