Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have Annotate installed on a 5.x system.
When a user with "read annotation" and "create annotation" permissions clicks on "Printer Friendly", the "Annotations" section of the resulting printer friendly page includes "Input format" and "Visibility" node form fieldsets as well as the "Update" button. I would think that in the "Printer friendly" version of a node, we should only see the "Notes" for "Annotations".
Any suggestions?
Comment | File | Size | Author |
---|---|---|---|
#8 | annotatePrinterFriendly.jpg | 69.67 KB | SomebodySysop |
#4 | annotate.module.5.x-1.1.patch | 2.26 KB | SomebodySysop |
Comments
Comment #1
clemens.tolboomYou are quite right that this should be rendered differently. If you could give me some code example how printer friendly works that would be great!
Thanks for the suggestion
Comment #2
clemens.tolboomComment #3
SomebodySysop CreditAttribution: SomebodySysop commentedTry this patch on 5.x-1.1 release. Should fix the problem.
Comment #4
SomebodySysop CreditAttribution: SomebodySysop commentedCan't seem to upload the patch. If not attached here, then get it from here: http://www.scbbs.com/system/files/annotate.module.5.x-1.1.patch
Comment #5
clemens.tolboomI don't think it should be a text area in printer friendly mode. It should either be plain text or not showed at all.
What do you (everybody!) think?
Comment #6
SomebodySysop CreditAttribution: SomebodySysop commentedHow do you render 'plain text' using the form api? I couldn't figure out how to do it.
Comment #7
clemens.tolboomI decide to place ALL allowed annotations on the printer friendly page ... that is the content of the 'Annotation' tab is merged into the printer friendly page.
My motivation is that when people want to print the page they want all content related to the page. If I'm wrong please let me know. I will commit this solution into the dev version.
Comment #8
SomebodySysop CreditAttribution: SomebodySysop commentedHave you looked at the "printer friendly" output from annotate? It puts the actual annotation into a small box (that must be scrolled to see a long annotation). It also display the "Input format" and "Visibility" settings as well as the "Update" button. How do we get rid of all that and just show the formatted text of the annotation itself in printer-friendly mode?
Comment #9
clemens.tolboomThe changes I made where done in the dev version. I will create an official release from it.
Comment #10
clemens.tolboomComment #11
clemens.tolboom