Hi,
I would like to have, within this module, the possibility to have a view mode specific for printing, in order to have more flexibility on the fields that can be printed. I will provide a patch in the next comment.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | view_mode-1125842-1.patch | 7.86 KB | guillaumev |
Comments
Comment #1
guillaumev commentedThis patch adds a view mode called print and allows users to define which view mode they want to use for printing, from the configuration form.
Comment #2
swentel commentedbumping, really need this one as well.
Comment #3
jcnventuraHi,
Thanks for the patch.. I didn't use it directly, but it set me on the right path.
I've committed to git some code to enable the view mode.
João
Comment #5
El Bandito commentedHi
Did this ever make it into a release version, and if so where ?
Thanks
Comment #6
El Bandito commentedChanging the status as a quick glance at the code looks as though this feature never made it into a the release.
Comment #7
jcnventurahttp://drupalcode.org/project/print.git/commit/17691f5022844431acfadeef8...
Comment #8
El Bandito commentedProbably I'm not understanding something but I thought the requirement was to present a new display mode in the admin interface so that the fields can be re-arranged specifically for the 'print' view mode. However the committed code says :
which means the new view mode uses the default view mode's settings ( according to http://api.drupal.org/api/drupal/modules!system!system.api.php/function/... ). In which case I don't really see the point defining a new view mode ?
Comment #9
El Bandito commentedI've just re-read the following in relation to custom_settings :
Does this mean I should be able to see a 'print' view mode at admin/structure/types/manage/MY_CONTENT_TYPE/display ? I can't .......
Comment #10
jcnventuraThe 'Print' view mode is there indeed. But you need to expand the "Custom display settings" and then tick the 'Print' checkbox.
Once you've done this, you'll be able to customize the display of fields in the pages/objects generated by the print module.
Comment #11
El Bandito commentedjcnventura
++++1. You are a gentleman and a scholar ! Apologies for troubling you with something I should have spotted instantly.
Keep up the good work.
Comment #12
nancydruIs there also an Email view mode?