Posted by leon85321 on March 17, 2009 at 10:06pm
Jump to:
| Project: | Fill PDF |
| Version: | 6.x-1.1 |
| Component: | Documentation |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (won't fix) |
Issue Summary
Hello,
I have just get it to work with my site (thanks to prior support of the uploading)
Now I know that I can download and view the PDF by using the URL format: mydomain.com/events/fillpdf?fid=[fid]&nid=[nid]
However I would also like to know if there is a way to add this link to a tab attached to the node so it looks like the Edit tab for a node?
Maybe views can help with this?
Thank you,
Leon
Comments
#1
Not views. Add a small custom module and write a hook_menu() function. For some reason I can't get it to work, but I'll come back to it this weekend:
function YOURMODULE_menu(){$items=array();
$items['node/%/pdf'] = array(
'title' => 'Download PDF',
'page callback' => 'drupal_goto',
'page arguments' => array('fillpdf?nid='.arg(2).'&fid='.<<YOUR_FID>>),
'type' => MENU_LOCAL_TASK,
'weight' => 100,
);
return $items;
}
#2
Hello lefnire,
Thanks for your reply, it sounds good to me.
I am new to Drupal and have very limited understanding to PHP and drupal functions.
Please guide me how to implement the code.
Thank you,
Leon
#3
I would love this functionality as well. I need to add a download PDF link when I'm viewing the submission so the user doesn't have to manually insert the SID into the URL.
#4
I think that this is the domain of custom modules right now. Fill PDF provides the functions and tools to implement something like this, but I don't think it should impose a particular implementation or format of link. Handbook pages with code samples are welcome, and I think that's the best way to tackle this issue - with documentation rather than a new feature to maintain and support.