Printer-Friendly-Version Module and Printing Blocks

Request Type: 
General Assistance
Author: 
Carolyn Marks
Issue/Request: 

This URL is for a node that contains view-generated blocks in the main content area.  I want to make it easy for users to print the main content area including the content in the blocks. 

I installed the Printer-Friendly-Version module, however it will only print the ‘page’ content.  It doesn’t print the views-block content. 

Based on some drupal.org discussions I’ve read today, I understand that module can be adjusted to print view-generated content in blocks if the print.tpl.php file is modified using code along these lines (see https://www.drupal.org/node/1362546):

<?php
$block = module_invoke(‘views’, ‘block_view’, ‘nameofmyblock-block’);
if ($block){
print render($block[‘content’]);
}
 ?>

Is this something you can help with?  The names of the two blocks on that page which I would like to have print are:

block-8b7c018b66f8614852f1a6e8b9416f1c

block-3d6e4eb7d0878276ab3b8b46d484d8ac

Thanks!

Carolyn

Hello Carolyn,

I did notice the print preview does show the blocks. What might be the case is that since you have collapsible blocks, they are not being expanded for the view to show in print preview. The option would be to disable those for printing, but I don’t think that’s an available option for Collapsible Blocks.

Josue