I'm not sure if this is a problem for com_content or not because I'm using FlexiContent but on it when I click print it still displays the comments and comment form. I actually like printing the comments with the page but I don't see the point in printing the comments form. I've got something working now that solves this issue for me but an official option (?) would be preferred.
Right now I'm wrapping the comments form with an if that checks to see if its in print mode and if it is it doesn't display.
components\com_jcomments\tpl\default\tpl_form.php
/*
*
* Comments form template
*
*/
class jtt_tpl_form extends JoomlaTuneTemplate
{
function render()
{
if ($this->getVar('comments-form-message', 0) == 1) {
$this->getMessage( $this->getVar('comments-form-message-text') );
return;
}
if ($this->getVar('comments-form-link', 0) == 1) {
$this->getCommentsFormLink();
return;
}
// ~cXc~ remove form if in print mode
// $this->getCommentsFormFull();
$options = new stdClass;
$options->print = JRequest::getBool('print') || $full;
if ( ! $options->print ){
$this->getCommentsFormFull();
}
}
... its a really simple idea that I hope you could do a better way this was just a quick fix a client asked me for that I thought might be a good idea.
In the code block above it is lines 20 - 26 where the changes were made ....