Each of the include files used to handle the meta tag should be allowed to add settings options not directly correlated with the values of the meta tags in a specific page, which, i.e., could be used to interpret the value of those meta tags.

Comments

avpaderno’s picture

Title: Add the support for settings fields » Add the support for more meta tags setting fields
avpaderno’s picture

This has been implemented.

Each meta tag can now have a function like this one (the reported function is for the description meta tag):

function nodewords_description_settings_form(&$form, $type, $settings, $node_type = NULL) {
  switch ($type) {
    case 'advanced_settings':
      $form['nodewords']['advanced']['use_teaser'] = array(
        '#type' => 'checkbox',
        '#title' => t('Use the node teaser if the description meta tag is not set'),
        '#default_value' => $settings['advanced']['use_teaser'],
      );
      
      $form['nodewords']['advanced']['use_alt_tags'] = array(
        '#type' => 'checkbox',
        '#title' => t('Include the ALT attribute of images in the description meta tag created from the node teaser'),
        '#default_value' => $settings['advanced']['use_alt_tags'],
      );
      break;
    
    case 'node_type_form':
      $form['workflow']['nodewords']['use_teaser'] = array(
        '#type' => 'checkbox',
        '#title' => t('Use the node teaser if the description meta tag is not set'),
        '#default_value' => variable_get('nodewords_user_teaser_'. $form['#node_type']->type, $settings['advanced']['use_teaser']),
      );
      break;
  }
}
avpaderno’s picture

Status: Active » Fixed

I should open an issue report for read_in_my_mind.module.

Status: Fixed » Closed (fixed)

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