I use Panels module to override how nodes of specific content types are
viewed, for example I use node template with a variant for 'Course' content
type to view any node of this content type as a Course Definition Card instead
of the default listing of fields names and values. I installed Printer module to
print these cards, but when I follow the printer friendly version link it displays
the default view of the node instead of the node template output of Panels!
How to solve this problem ?

Comments

Exploratus’s picture

subscribe +1 would be awesoe if we could specife the path for the pdf page - and then we can just create it in panels.

runzipel’s picture

subscribe +1 for me too!

Exploratus’s picture

+2. hehehe

hutch120’s picture

Looks like this is a copy of this topic: http://drupal.org/node/565856

There they are saying it is not possible, but I don't follow exactly why at this point. The output of the $print array shows it must be building the content from somewhere in the render process, but why not after panels has added its coolness I wonder.

jcnventura’s picture

Status: Active » Postponed (maintainer needs more info)

The problem with rendering correctly a panels page, is what is considered "content" or not. Drupal clearly defines what is the node content. If you're adding more stuff via Panels, it may or not be useful in terms of content.. Unfortunately, a lot of content is indeed added via panels / blocks / contexts, but at the moment you have to add it back into the print.tpl.php file manually.

jcnventura’s picture

The problem with rendering correctly a panels page, is what is considered "content" or not. Drupal clearly defines what is the node content. If you're adding more stuff via Panels, it may or not be useful in terms of content.. Unfortunately, a lot of content is indeed added via panels / blocks / contexts, but at the moment you have to add it back into the print.tpl.php file manually.

jcnventura’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

No further info in two weeks. Closing the issue.

Andy_Read’s picture

Status: Closed (fixed) » Closed (works as designed)

Because this issue is a duplicate of #565856: Can Panel pages be sent to PDF for rendering?, but a bit more recent, I just wanted to highlight that I've updated that issue. The print module already works well with Panels with stand-alone paths - it's just Panel nodes that are treated as simple nodes without the Panels formatting.

It's simple to patch the print_controller() function to use the Panels output for nodes, but I wanted to get some input on reqs/spec before suggesting a specific patch. When should the print module take Panels output rather than node-specific output?

I suggest all further discussion should revert to the original issue #565856: Can Panel pages be sent to PDF for rendering?.

osopolar’s picture

Issue summary: View changes
Status: Closed (works as designed) » Closed (duplicate)

see #11