Display block from content region

pounard - October 27, 2009 - 10:33
Project:Printer, e-mail and PDF versions
Version:6.x-1.9
Component:User interface
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

Hi, I know this is defective by design, but sometimes, blocks in content ARE the content. Using some menu alteration, we may have to display our views as blocks in content, in those use case, when the user wants to print its page, he wants to see those blocks in the printed page body.

The module should include blocks in content region and display them when doing a _print_generate_path().

#1

pounard - October 27, 2009 - 10:34

Oups sorry, last sentence was a question, not an affirmation.
Does this modules should display content region's blocks? I think this is consistent.

#2

pounard - October 27, 2009 - 10:51

I know this behavior is opposite to print module's goal (which is to remove all blocks), so I did a really dirty patch, but which works on the site I'm currently working on.
Hope it could help people with strange site configuration like I currently work on.

AttachmentSize
print.pages_.inc-6.x-1.8-content_blocks.patch 434 bytes

#3

jcnventura - October 27, 2009 - 10:56
Status:active» fixed

Indeed, as you said in #1, it's a question, actually it's a FAQ.

You don't need to patch the module, just alter the template to display the content blocks. You can even place the template in your theme.

João

#4

pounard - October 27, 2009 - 11:14

Oh ok, really thanks!
I should have read the FAQ before asking, sorry.

#5

System Message - November 10, 2009 - 11:20
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.