Closed (fixed)
Project:
Printer, email and PDF versions
Version:
5.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
30 Jun 2008 at 08:02 UTC
Updated:
31 Jul 2008 at 04:47 UTC
I need to pass to printed node an argument in the drupal path (for example for print the page http://mysite.org/?q=node/3/argument I need the path http://mysite.org/?q=print/3/argument) but the print_controller() function don't handle the path in correct mode and don't call the correct function (_print_generate_node($nid, $cid);).
I patch the code with this snippet that work for me.
I replace line 42 of print.pages.inc with this code:
//PATCH added for permit other args after nid
$pos = strpos($args, '/');
if($pos > 0){
$nid = substr($args,0, strpos($args, '/'));
}else{
$nid = $args;
}
Comments
Comment #1
jcnventuraHi,
Thanks for the tip. I actually used a slightly simpler code:
I have committed this to HEAD, so the next release in the 6.x tree will have the fix.
João
Comment #2
SolomonGifford commentedAny chance this will be backported to 5?
Comment #3
SolomonGifford commentedSorry, its in the dev version. My bad.
Comment #4
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.