Closed (fixed)
Project:
Block Group
Version:
7.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
7 Nov 2013 at 04:16 UTC
Updated:
11 Jan 2014 at 14:10 UTC
Jump to comment: Most recent
Comments
Comment #1
znerol commentedThanks for your suggestion. I am also very interested in having the option to export Block Groups into code.
According to this blog post (also see comments) there are three popular options:
However the problem is that Block Group does not provide any configuration apart from the standard block options. The only configuration a Block Group has is its name and machine name. The former maps directly to the block title while the latter maps to the block delta. Block Group does not have a database table by itself, it just relies on the core block table. Therefore it seems to me that option 1 and 3 are not going to work.
Also I think that only having the Block Group configuration exportable (i.e. the Name and Machine Name) but not the block settings (visibility, placement) will not be very useful. A better approach would be to try integrating with an existing module capable of exporting blocks and try to inject the Block Group configuration there.
I have not done the research, so if you find a module capable of exporting blocks, please post a link here.
Comment #2
neomen commentedYes, block don't have a features integration, but I use a "boxes" module (https://drupal.org/project/boxes), they have a export and features integration.
Comment #3
znerol commentedCommitted and pushed ebe4e35.
Please note, that block settings are not managed. Use the Block Settings from Features Extra in order to manage those.