In the documentation, it states:


<strong>Administer > Content management > Content types (admin/content/types)</strong>
    For each content type it is possible to enable or disable the PF link via the "Show printer-friendly version link" checkbox. (default: enabled)
    It is also possible to enable or disable the PF link in individual comments via the "Show printer-friendly version link in individual comments" checkbox. (default: disabled)

However, I don't see that on my content type edit screen. Just two fields - "Paper size" and "Page orientation", with no checkbox to disable the fields on the node edit screen.

Am I missing something, or is this a bug?

CommentFileSizeAuthor
#2 edit-content-type.png108.09 KBkbrinner
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

joshua.albert created an issue. See original summary.

kbrinner’s picture

FileSize
108.09 KB

I'm wondering the same thing. This is what it looks like when I edit any given content type (at admin/structure/types/manage/[content type]:

edit content type

I see the option at the bottom where you can set the Paper size and Page orientation options, but I don't see any checkboxes in any of the vertical tabs above where you could enable or disable the PF link.

alex.skrypnyk’s picture

The code below converts those 2 fields into vertical tab item.

/**
 * Implements hook_form_alter().
 */
function YOURMODULE_core_form_alter(&$form, &$form_state, $form_id) {
  if (module_exists('print_pdf')
    && (user_access('administer print') || user_access('node-specific print configuration'))
    && !empty($form['#node_edit_form'])
    && !empty($form['print'])
  ) {
    $form['print']['#title'] = t('Print');
    $form['print']['#type'] = 'fieldset';
    $form['print']['#group'] = 'additional_settings';
    $form['print']['#weight'] = 100;
  }
}