Hi Gary,<div><br></div><div>It's a bit confusing... and different themes deal with it differently. But the underlying concept here that you are missing is that a module must be responsible for a block. So in the case of "block-block-1" it is the block module that is responsible. The menu module (as many other modules) also creates blocks. So you might see "block-menu-1". For each controlling module, the numbering starts over. </div>
<div><br></div><div>But some themes don't use the "delta" or at least not in certain situations. Like I just looked at a site (I think I used Genesis there) where I saw "block-menu-nav" where "nav" was the name of the menu. There was no delta. And on another site using Zen and Panels I saw a block in a panel get "pane-menu-block-1. So now I've confused you. But I think I've gotten you over the hump here, conceptually, yes? A module always "owns" a block.</div>
<div><br></div><div>best,</div><div><br></div><div>Shai</div><div><br><div class="gmail_quote">On Thu, Sep 30, 2010 at 11:27 AM, Broyhill, Gary <span dir="ltr"><<a href="mailto:Gary.Broyhill@lr.edu">Gary.Broyhill@lr.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div>
<font size="4"><font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size:11pt">I’ve got a CSS problem related to block.tpl.php . I was looking at the API for block.tpl.php, and I’m a little confused over how Drupal assigns the block-block-x ID to come up with block-block-1, block-block2, etc.<br>
<br>
>From the API: </span></font><font face="Consolas, Courier New, Courier"><span style="font-size:10pt"><div id="block-</span><span style="font-size:11pt"><?php print $block->module .'-'. $block->delta; ?>" class="block block-<?php print $block->module ?>"><br>
<font color="#FE0000"><br>
</font></span></font><span style="font-size:11pt"><font face="Calibri, Verdana, Helvetica, Arial">So I see that the ID value comes from </font></span><font face="Consolas, Courier New, Courier"><span style="font-size:10pt">"block-</span><span style="font-size:11pt"><?php print $block->module .'-'. $block->delta; ?>"</span></font><span style="font-size:11pt"><font face="Calibri, Verdana, Helvetica, Arial"> but where its the numbering controlled?<br>
<br>
<br>
<br>
-- <br>
Gary Broyhill<br>
Webmaster<br>
Lenoir-Rhyne University<br>
<a href="http://www.lr.edu" target="_blank">www.lr.edu</a><br>
<a href="mailto:gary.broyhill@lr.edu" target="_blank">gary.broyhill@lr.edu</a><br>
(828)328-7379<br>
</font></span></font>
</div>
<br>--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br></blockquote></div><br></div>