Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
hello
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).
Zen:
http://drupal.org/project/zen
Seven:
http://drupal.org/project/seven
Bartik:
http://drupal.org/node/850624#comment-3565102
http://drupal.org/node/850624#comment-3583452
Comments
Comment #1
stBorchertHi.
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.
Comment #2
lpalgarvio CreditAttribution: lpalgarvio commentedi tried in Drupal 6 with those 3 themes:
- Zen (D6)
- Seven (D6 version, official)
- Bartik (D6 version, unofficial
Comment #3
stBorchertI enabled the module and changed the block.tpl.php of my theme to:
This works for me without further configuration. How did you add the classes?
Comment #4
lpalgarvio CreditAttribution: lpalgarvio commentedi don't remember anymore, was a while ago.
but i'll give it another try, using your explanation.
Comment #5
hansrossel CreditAttribution: hansrossel commentedYou 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; ?>">