It would be great to add support for panels.
I've looked a bit (I'm not much of a drupal developper) at the ctools code and I found in the ctools/plugins/content_types/page/page_tabs.inc file the following code wich makes the CSS field available (via Panels => Variants => Content page) to panels when the Stylizer sub module is enabled...

function ctools_page_tabs_content_type_edit_form($form, &$form_state) {
$conf = $form_state['conf'];

$form['type'] = array(
'#title' => t('Tabs type'),
'#type' => 'select',
'#options' => array(
'both' => t('Primary and secondary'),
'primary' => t('Primary'),
'secondary' => t('Secondary'),
),
'#default_value' => $conf['type'],
);

$form['id'] = array(
'#title' => t('CSS id to use'),
'#type' => 'textfield',
'#default_value' => $conf['id'],
);
return $form;
}

/**
* The submit form stores the data in $conf.
*/
function ctools_page_tabs_content_type_edit_form_submit($form, &$form_state) {
foreach (array_keys($form_state['plugin']['defaults']) as $key) {
if (isset($form_state['values'][$key])) {
$form_state['conf'][$key] = $form_state['values'][$key];
}
}
}

I guess we could use something like this in a meta tags quick submodule to set the tags...
Another routine should also print the code to the header...

Does someone have an idea how to that ?

Comments

valthebald’s picture

Version: 7.x-1.7 » 7.x-1.x-dev

Probably this should be joined with #1146018: Meta tags based on path

valthebald’s picture

Status: Active » Closed (duplicate)