Closed (fixed)
Project:
Printer, email and PDF versions
Version:
5.x-3.6
Component:
Code
Priority:
Critical
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
7 Aug 2008 at 12:18 UTC
Updated:
15 Aug 2014 at 04:35 UTC
Jump to comment: Most recent
Comments
Comment #1
jcnventuraHi,
There are actually two visibility settings.. One for the content pages, and one for the Drupal-generated pages (such as the control panel). As the Administrator, if correctly configured you ought to be able to see the links. See the FAQ #1 for some troubleshooting tips (http://drupal.org/node/190173).
João
Comment #2
krusha commentedThanks Joao for the reply,
I have checked over the settings listed in the FAQ, and all seem to be checked off as needed, still no links
Under content type, all the different types already have "Show printer friendly link" checked off
Anything else i can try?
Comment #3
jcnventuraHi,
Does 'checked off' mean enabled or disabled??
João
Comment #4
krusha commentedSorry,
Meaning there is a check in the box, so it must be enabled
Comment #5
jcnventuraCan you do:
print_r(variable_get('print_settings',''));Short of giving me admin access to your site, I am running out of ideas.
João
Comment #6
krusha commentedwhere should i try that, paste it in one of my pages and see result?
Thanks again Joao i appreciate it
Comment #7
datawench commentedi'm having a similar problem. i've enabled the link, pretty much with default setting, and the link doesn't show up in the template output. i would expect that it would appended to the "comment" and "email" links that show up when this is in the template:
i'll go ahead and use the direct method
but something seems a bit off.
Comment #8
jcnventura@krusha: yes that in a page with the PHP filter on should show the module settings..
@datawench: the link should be there indeed. You may be having the same problem.
Comment #9
datawench commentedif i enable print-friendly links for the admin pages, do a source view and compare it to the garland template (which is what i'm using for admin), i see that the link is actually generated here:
which tells me that the link is not being appended to the "links" variable but to a "help" variable.
Comment #10
krusha commentedArray ( [show_link] => 1 [node_link_visibility] => 0 [node_link_pages] => [link_class] => print-page [sys_link_visibility] => 0 [sys_link_pages] => [book_link] => 1 [logo_url] => [css] => [urls] => 1 [comments] => 0 [new_window] => 1 [newwindow] => 1 [sendtoprinter] => 0 )
Thats what it spit out
Thanks again!
Comment #11
krusha commented[node_link_visibility] => 0
throws a red flag in my mind.. I have all the options enabled in the control panel, what the heck am i missing? can i manual edit that and make it a 1 to turn it on? where is that file.
Thanks again
Comment #12
jcnventura@datawench: Yes, there's no links area for the admin pages, so it has to show up in the help area..
@krusha: the 0 there only means that the first option is selected (Show on every page except the listed pages.), if you select the second option, it turns into a 1. Your settings seem to be OK. I have replicated these settings on my site and the link comes out OK.
I can only assume that something weird is going on, but I'm out of ideas.
João
Comment #13
krusha commentedJoao,
Thanks again for the advice, although I am still unsuccessful.
Is there a module that enables links on pages that maybe is turned off as the template we use was desgined by a 3rd party?
Is there a code i can manually paste into the pages i want to have a "print this" link on? if so would you mind posting it?
ive tried
with no luck
Comment #14
jcnventuraThe link would be added by that call, if you add a print or echo for PHP to do something with it.
echo print_insert_link()This should add a link to the print version of the current page. At least the
<span class="print">string should appear in the page source.Can you also try using the Garland theme instead of your 3rd party template and see if the links show up in there?
João
Comment #15
krusha commentedJoao,
I cannot change the theme as it is a company website
I am downloading the theme from /sites/default/theme (as that is where its located)
is there a file i can look at that should ahve some type of code in it to allow printer friendly pages to inject the necessary link, maybe this line was deleted for some reason or another? is there a way to manually put this line in one of the theme files to have the link at the bottom of the page
lets say we look at page.tpl.php
thanks again!!
Comment #16
jcnventuraWell, if you know enough PHP, I would start by putting some var_dump() calls in print_link to at least know if it is being called..
If it is, do a var_dump() also before the return and see if it's being correctly produced (should be an array with contents defined before).
If this is coming out OK, I would try to find in your theme where it is getting the link contents and see what is being received...
If you don't know enough PHP for all of that, you can always disable the use of this module..
João
Comment #17
krusha commentedI do not know PHP very well.. unfortunately
If i add
to the bottom of node-news_item.tpl, on the news pages i will see the printer friendly link where i have inserted the PHP (next to a BACK TO TOP LINK i saw in the source and i can visably see on the website). The link works, a printer friendly page pops up when clicked.. however, on the front page, there is what i would say is a highlight of news we hav eon the site, and by adding the PHP to that file, after every preview of each article is an ugly printer friendly link, so i need to figure out how to differenciate between the pages with news, and the front page..
does that many any sense?
Comment #18
jcnventuraIt makes sense, yes.. You need to test for $teaser..
Something like:
João
Comment #19
jcnventuraClosing the issue, as it was not possible to discover the source of the problem.
João
Comment #20
websage_gr commentedWell I know this thread is old, but for anyone who might get stuck with the same problem. Check the print module's INSTALL.txt as you need a PDF conversion tool installed on your server. Once the tool is there and in the right path the link to convert pdf should show up.
Comment #21
mistermendez commentedI solved this by updating the permissions for "anonymous user" for the following items:
- Printer-friendly pages
- PDF version
- Send by email
Comment #22
eqbal0786 commented