Closed (works as designed)
Project:
Basic
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
25 Jan 2012 at 10:25 UTC
Updated:
9 Mar 2013 at 20:04 UTC
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
Comment #1
SteveK commentedcontextual links are already working out of the box in 3.x branch.