Posted by Countzero on January 25, 2012 at 10:25am
2 followers
Jump to:
| Project: | Basic |
| Version: | 7.x-3.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | SteveK |
| Status: | closed (works as designed) |
Issue Summary
As it's now part of core, I think the integration of block management contextual links should be easy.
For those who don't know about it, it outputs a contextual menu on blocks (hover) with the relevant links to various admin tasks, mainly 'Configure' to allow the edition of the block without going in admin/structure/blocks by hand.
I just changed the block.tpl.php this way ;
<div id="block-<?php print $block->module .'-'. $block->delta ?>" class="<?php print $classes; ?> clearfix"<?php print $attributes; ?>>
<div class="block-inner">
<?php print render($title_prefix); ?>
<?php if ($block->subject): ?>
<h2 class="block-title"<?php print $title_attributes; ?>><?php print $block->subject ?></h2>
<?php endif;?>
<?php print render($contextual_links); // Added this line ?>
<?php print render($title_suffix); ?>
<div class="content" <?php print $content_attributes; ?>>
<?php print $content; ?>
</div>
</div>
</div> <!-- /block-inner /block -->... and it seems to work fine.
Maybe it can cause problems, but I thought I might share if it helps others.
Comments
#1
contextual links are already working out of the box in 3.x branch.