the documentation is a bit poor.
how do i enable this module for a Zen (starterkit) theme, Seven theme and Bartik mod theme?

i tried adding the classes to the array in template.php and in the main body/div in each tpl for bartik, but it didn't worked (flushed caches).





stBorchert’s picture

This modul is intended to get the core function of Drupal 7 available for Drupal 6. Seven and Bartik are themes of Drupal 7 so you don't need to add classes to make contextual links work (though you'll have to enable the core module).

If you're trying to enable this module in Drupal 7 it won't work.

lpalgarvio’s picture

i tried in Drupal 6 with those 3 themes:
- Zen (D6)
- Seven (D6 version, official)
- Bartik (D6 version, unofficial

stBorchert’s picture

I enabled the module and changed the block.tpl.php of my theme to:

<div id="block-<?php print $block->module .'-'. $block->delta; ?>" class="<?php print $classes; if(isset($block_classes)) { print $block_classes;} ?>">

This works for me without further configuration. How did you add the classes?

lpalgarvio’s picture

i don't remember anymore, was a while ago.
but i'll give it another try, using your explanation.

hansrossel’s picture

You need to add an extra variable to your template files:

- node: $node_classes
make a copy of node.tpl.php and put it in your theme
change: <div id="node-<?php print $node->nid; ?>" class="<?php print $node_classes; ?> node<?php if ($sticky) { print ' sticky'; } ?><?php if (!$status) { print ' node-unpublished'; } ?> clear-block">

- views: $views_classes
make a copy of views-view.tpl.php and put it in your theme
change: <div class="<?php print $classes . ' ' . $views_classes; ?>">

- block: $block_classes
make a copy of views-view.tpl.php and put it in your theme
change: <div id="block-<?php print $block->module .'-'. $block->delta; ?>" class="block block-<?php print $block->module ?> <?php print $block_classes; ?>">

- page: $page_classes
make a copy of page.tpl.php and put it in your theme
<body class="<?php print $body_classes . ' ' . $page_classes; ?>">