I have made several themes based on the Zen Theme http://drupal.org/project/zen , and they all have the same problem. Admin Hover works perfectly on the nodes, but doesn't work on blocks although the code in block.tpl.php seems OK (from the Zen default):
<div id="block-<?php print $block->module .'-'. $block->delta; ?>" class="block <?php print $block_classes; ?>"><div class="block-inner">
I have tried to look into your jQuery, without understanding what goes wrong with Zen.
And another completely different thing, as done with .block-admin_hover, nodes should have a the tool bar above node content for better usability, add:
.admin_hover {
top: -22px;
}
Comments
Comment #1
conortm commentedYngve,
It sounds like you've done everything right, so I'm not sure why the block Admin:hover links aren't working... I would need to take a look at your theme's code to figure this one out... If you'd like, could you either post a zip of the theme somewhere for me to grab? Alternatively, I've just sent you a message with my email address, so you could send it to me that way (if it's not too too huge)...
Hope I can help!
Comment #2
yngvewb commentedThank you! All my themes are based on Zen, and Zen itself has the same problem, so if you could download Zen 5.x.1.1 http://drupal.org/project/zen and have a look, I will be very thankful!
Comment #3
czeky commentedHi, same problem here, I have my custom theme, but blocks.tpl.php is default garland one, but its not working, however block_edit module (which needs the same scheme block-{modulename}-{delta} ) is working.. dunno why, works on nodes.. not on blocks, could it be page.tpl.php problem?
thanx
Comment #4
rj commentedIt works fine in my Drupal 5 setup w/zen, make sure your views provide a teaser list and not fields (you may need to clone your view and start over), and clear your cache.
Comment #5
rj commentedJust to follow up, I just did a little testing on my site (D5, Zen) and sometimes the block admin:hover links work and sometimes they don't. They DO NOT work when the Search form, Views_multiblocks, or Devel Switch User blocks are displayed. (however, if I enable the search form through my theme and use print $search_box in page.tpl.php, block admin:hover links work fine). Any ideas?