I have more than 10 displays of my view GerelateerdeContentNode.

The block for the first 9 displays gives a nice

...

From the 10 display on I get (so some cache value which I don't trust for theming):

Comments

hansrossel’s picture

Sorry, forgot the code filter:

So for the first 9 blocks:

<div id="block-views-GerelateerdeContentNode-block_1" class="block block-views">
<div id="block-views-GerelateerdeContentNode-block_2" class="block block-views">
..
<div id="block-views-GerelateerdeContentNode-block_9" class="block block-views">

And from 10 on:

<div id="block-views-b7d7d6078f6f6b03ebbeceaf8e218201" class="block block-views">
merlinofchaos’s picture

Drupal's block system only supports 32 characters for the 'delta' which is the ID of the block. However, Views have a possible of 65 characters total: The view name which can be 32 characters, and the display ID which can be 32 characters, and the dash that goes between them to separate them.

If the total of the view name + the display ID is 33 characters or more, in order to make this work Views converts it to an md5, which is 32 characters. Unfortunately this is also used in the block IDs. Thus, you get the ugly md5 rather than the nice block_10 that you really want.

You need to use shorter view names to make this work.

Also, 10 blocks in a single display is probably more than you really want. The UI is not efficient at dealing with a lot of different displays. I would only do this if they are all very similar with minor overrides.

hansrossel’s picture

Status: Active » Fixed

Thanks for the very clear explanation. I will try to use shorter views names, but it's good to know that it's not a cache value but a converted md5 value, so safe to use in css as it will not change.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.