<HTML>
<HEAD>
<TITLE>Re: support Digest, Vol 94, Issue 1</TITLE>
</HEAD>
<BODY>
<FONT SIZE="4"><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Shai,<BR>
<BR>
That helps ... I guess I will need to find another way to deal with the style issues then. I am running a multisite setup with one theme in sites/all/themes, and have created CSS for &#8220;block-block-2&#8221; (for example) that I want to apply across all sites. In most of the sites, block-block-2 is my right sidebar, but for a couple it&#8217;s the center image. I guess because the sites have different combinations of modules, the content of block-block-2 is potentially going to be different for each site? I am not sure how to compensate for this without adding an overriding style sheet for the sites that vary from my setup. &nbsp;I have 45 subsites and it&#8217;s getting to be a bit messy.<BR>
<BR>
Gary<BR>
<BR>
---------------------------------<BR>
<BR>
Date: Thu, 30 Sep 2010 12:13:18 -0400<BR>
From: Shai Gluskin &lt;<FONT COLOR="#0000FF"><U>shai@content2zero.com</U></FONT>&gt;<BR>
Subject: Re: [support] block.tpl.php CSS issue<BR>
To: <FONT COLOR="#0000FF"><U>support@drupal.org<BR>
</U></FONT>Message-ID:<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;<FONT COLOR="#0000FF"><U>AANLkTi=htNU-4=LCLey3RUqdfQwyQ_CqmQWj+yd1UH=h@mail.gmail.com</U></FONT>&gt;<BR>
Content-Type: text/plain; charset=&quot;windows-1252&quot;<BR>
<BR>
Hi Gary,<BR>
<BR>
It's a bit confusing... and different themes deal with it differently. But<BR>
the underlying concept here that you are missing is that a module must be<BR>
responsible for a block. So in the case of &quot;block-block-1&quot; it is the block<BR>
module that is responsible. The menu module (as many other modules) also<BR>
creates blocks. So you might see &quot;block-menu-1&quot;. For each controlling<BR>
module, the numbering starts over.<BR>
<BR>
But some themes don't use the &quot;delta&quot; or at least not in certain situations.<BR>
Like I just looked at a site (I think I used Genesis there) where I saw<BR>
&quot;block-menu-nav&quot; where &quot;nav&quot; was the name of the menu. There was no delta.<BR>
And on another site using Zen and Panels I saw a block in a panel get<BR>
&quot;pane-menu-block-1. So now I've confused you. But I think I've gotten you<BR>
over the hump here, conceptually, yes? A module always &quot;owns&quot; a block.<BR>
<BR>
best,<BR>
<BR>
Shai<BR>
<BR>
On Thu, Sep 30, 2010 at 11:27 AM, Broyhill, Gary &lt;<FONT COLOR="#0000FF"><U>Gary.Broyhill@lr.edu</U></FONT>&gt;wrote:<BR>
<BR>
&gt; &nbsp;I?ve got a CSS problem related to block.tpl.php . I was looking at the<BR>
&gt; API for block.tpl.php, and I?m a little confused over how Drupal assigns the<BR>
&gt; block-block-x &nbsp;ID to come up with block-block-1, block-block2, etc.<BR>
&gt;<BR>
&gt; &gt;From the API: &nbsp;&lt;div id=&quot;block-&lt;?php print $block-&gt;module .'-'.<BR>
&gt; $block-&gt;delta; ?&gt;&quot; class=&quot;block block-&lt;?php print $block-&gt;module ?&gt;&quot;&gt;<BR>
&gt;<BR>
&gt; So I see that the ID value comes from &quot;block-&lt;?php print $block-&gt;module<BR>
&gt; .'-'. $block-&gt;delta; ?&gt;&quot; but where its the numbering controlled?<BR>
&gt;<BR>
&gt;</SPAN></FONT></FONT>
</BODY>
</HTML>