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.

CommentFileSizeAuthor
#1 view_mode-1125842-1.patch7.86 KBguillaumev

Comments

guillaumev’s picture

Status: Active » Needs review
StatusFileSize
new7.86 KB

This 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.

swentel’s picture

bumping, really need this one as well.

jcnventura’s picture

Status: Needs review » Fixed

Hi,

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

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

El Bandito’s picture

Hi

Did this ever make it into a release version, and if so where ?

Thanks

El Bandito’s picture

Status: Closed (fixed) » Active

Changing the status as a quick glance at the code looks as though this feature never made it into a the release.

jcnventura’s picture

El Bandito’s picture

Probably 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 :

$info['node']['view modes'] = array(
                'custom_settings' => FALSE;

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 ?

El Bandito’s picture

I've just re-read the following in relation to custom_settings :

If FALSE, entities displayed in this view mode will reuse the 'default' display settings by default (e.g. right after the module exposing the view mode is enabled), but administrators can later use the Field UI to apply custom display settings specific to the view mode.

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 .......

jcnventura’s picture

The '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.

El Bandito’s picture

jcnventura

++++1. You are a gentleman and a scholar ! Apologies for troubling you with something I should have spotted instantly.

Keep up the good work.

nancydru’s picture

Is there also an Email view mode?