By Brad McKenzie on Thursday, 17 April 2014
Posted in General Issues
Replies 9
Likes 0
Views 1.3K
Votes 0
When employees are attempting to print an article from our Joomla based intranet, they get multiple pages with the comments, as well. Is there a way to have the comments NOT print? We would be fine with them never printing for all Joomla Articles as some of these articles are documents that we would provide a customer. Thanks for any info.
Hello Brad McKenzie,

Unfortunately we do not have a good way when you print an article in your site without the the comment section.
But you can temporary put this code in your Joomla article content, backend > Content > article > edit your article > click "Toggle Editor" button > Paste the code inside the article content i provided below > save Check my screenshot : http://screencast.com/t/1okJMx7V
{KomentoDisable}

That mean it will disable the comment in this article, after you done your print, then you have to take it out the code, so the user can continue to comment in this article.

Or you can disable the Komento integration from your backend > Komento > integration > Joomla article > Enable Comments - NO
Hope this help.
·
Thursday, 17 April 2014 01:01
·
0 Likes
·
0 Votes
·
0 Comments
·
It is actually easier that that. Add this to your css for example in styles.css


@media print
{
.theme-kuro, .theme-kuro *
{
display: none !important;
}
}


Whenever you print the whole comments section will be hidden (at least it works on chrome and Firefox I do not care about IE). It does leave the "Powered by Komento" text though as that does not have a class or id. Could probably easily find where it is generated and add a class if it really bothered you. Edit: It is in components/com_komento/helpers/helper.php if you want to give it a class so you can hide it to.

Stuart
·
Wednesday, 30 April 2014 19:54
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Stuart Marsden,

Thanks for sharing
·
Thursday, 01 May 2014 00:59
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,
I am using the Bubbo theme, but it does not work for me.

I tried replacing kuro with bubbo, but I still see the comments in the print window.
·
Friday, 02 May 2014 04:56
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello checksum,

Sorry for late reply to this,
Did you mean that when you tried my instruction above, the comment still showing in the print window right?
Can i have your Joomla backend and FTP access so we can help you check on this? Please advise.
Also, could you mind provide us a sample Joomla article URL as well?
·
Friday, 02 May 2014 10:49
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Arlex,
Your solution is not practical because a user cannot make those modification.
I was trying Stuart solution, but it did not work for me.
Arlex Wong wrote:

Hello checksum,

Sorry for late reply to this,
Did you mean that when you tried my instruction above, the comment still showing in the print window right?
Can i have your Joomla backend and FTP access so we can help you check on this? Please advise.
Also, could you mind provide us a sample Joomla article URL as well?
·
Friday, 02 May 2014 11:06
·
0 Likes
·
0 Votes
·
0 Comments
·
Checksum,

I should have used the id rather than the class so a different theme should not stop it. Try this:

@media print
{
#section-kmt, #section-kmt *
{
display: none !important;
}
}


Also note the comments will still be visible on screen when you get the Joomla print popup. When you actually print or look at the print preview you will see they have disappeared.

Hope this helps,

Stuart
·
Friday, 02 May 2014 15:38
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you Stuart. I was looking at the print preview window.
·
Friday, 02 May 2014 17:13
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Stuart Marsden,

Awesome Thanks for sharing again.

==========================================================================================
Hello checksum,

Let us know that result
·
Friday, 02 May 2014 18:33
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post