Closed (won't fix)
Project:
Block Group
Version:
7.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Anonymous (not verified)
Created:
14 Mar 2013 at 23:52 UTC
Updated:
5 Nov 2014 at 21:03 UTC
Jump to comment: Most recent
Comments
Comment #1
znerol commentedThe markup of outer blocks (i.e. blockgroups) is currently removed completely and therefore block-class settings will not have any effect. I do this because otherwise we'd inherit all the block-style including margins and stuff resulting in awkwardly indented blocks. Nested blocks would be very difficult to style and that's the reason only the region-markup is rendered by default.
You have two options now:
block-blockgroup-default.tpl.phpto your theme and customize it (i.e. add a div-wrapper with the block-classes.I recommend the latter. Actually I posted the Region Class module a couple of days ago for exact that purpose.
Comment #2
znerol commentedThe Block Class module adds an additional field to the core block database scheme. Therefore classes added to blocks using the block class module are very tightly coupled to the block object itself. Regrettably there is no easy way to access this data from within a
hook_preprocess_region(besides querying the database).I'm in the course of releasing a new version of the region class module with block group support. With that module it is possible to set CSS classes directly from the block group configuration form.
Comment #3
mpa3b commentedI tried to customize block-blockgroup-default.tpl.php — no change.
Changes in theme directory and the original template files show no influence on resulting markup.
Comment #4
znerol commented@mpa3b: Please use the Region Class module if you like to assign classes to block groups. If this is not about classes on blockgroup regions but more about generic block-group theming, then open a new issue.