Hello, I just tried fe_block in a clean Drupal installation, created a block, exported, deleted that block and imported the feature. That block is not present, so fe_block does not work. On the features interfaces is on status "ovverriden". Since is a clean installation I am using Bartik theme

Any idea on whats wrong? I also tried the dev version , still no block

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

stilllife00’s picture

Update, deleting the block was the problem (then I needed to change the node machine name on the exported files). So if we suppose to import the node on a different website (with no need to delete anything) shouldn't e any problem. Still, fe_block seems not working with blocks of the module "menu_blocks".

stilllife00’s picture

It seems that when exporting "menu_blocks" it doesn't have an option to export also the "boxes" inc file so no block is created on the drupal's blocks interfaces. Is there a way to properly export menu_blocks ? Is this a bug or a missing feature?

pfrenssen’s picture

Title: Features Extra block doesn't work » Add support for the Menu Block module
Version: 7.x-1.0-alpha2 » 7.x-1.x-dev
Category: support » feature
Priority: Critical » Normal

No, Menu Blocks are not yet supported.

sokrplare’s picture

Looks like they kinda are, but it takes some strongarming (sorry ;). See #1894280: Exporting Menu Blocks with Features Extra and Strongarm for how to do it.

pfrenssen’s picture

Thanks for linking that issue, DYdave did a great job explaining how to export menu blocks with Features Extra and Strongarm. Reading through this it seems like adding support for Menu Blocks to Features Extra could be done quite easily.

pfrenssen’s picture

Here is an initial patch. I have just tested a simple export and it seems to work. I will commit this in branch 1947816 and start working on a test.

pfrenssen’s picture

Status: Active » Needs review

Let's run the existing tests on it.

pfrenssen’s picture

Status: Needs review » Postponed

The menu blocks also use numeric block ids, so we need to assign them a machine name to be avoid conflicts. Currently FE Block only supports machine names for the core Block module. The numeric ids are also used in the settings, so we cannot simply export them with Strongarm. The variables should get renamed as well.

I also just discovered #693302: Add API for exportable menu_blocks / Features integration. That issue converts the Menu Block module to use CTools to store and export menu blocks, doing away with the variables completely. That is a nice approach, but it would conflict with this issue if it would get into Menu Block 7.x-2.x.

At least for now this issue is blocked on the numeric IDs. I've created a separate issue to address this: #1994200: Provide machine names for other modules. Will postpone this issue until that gets in.