Tell me more ×
Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

I am trying to learn about creating a reasonable workflow between a development site and a production site and I have decided to use the Features module to help accomplish this task.

On my front page I have a couple blocks that display newly added and top rated content. I have used features to export these views but I do not see anyway inside of the Features module to export my block settings. I set the new projects and highest rated blocks to show up in the content section of a page. I filter it to only show up on the front-page inside the view.

How to export these block settings inside my feature so I do not need to reconfigure them on each site?

share|improve this question

2 Answers

up vote 3 down vote accepted

You can export much more using Feature together with Strongarm and Features extra.

Strongarm gives site builders a way to override the default variable values that Drupal core and contributed modules ship with. It is not an end user tool, but a developer and site builder tool which provides an API and a limited UI.

Features extra supports: vocabularies; nodequeues (definitions); block settings; custom blocks (boxes).

Additionally UUID Features Integration provides a mechanism for exporting content (nodes, taxonomy, fields) into a features module.

share|improve this answer
1  
I would also recommend using drush and git to handle the workflow. – Refineo Apr 4 '12 at 18:03
1  
Awesome that's exactly what I needed. I was planning on getting git going once I figured out how to use features a little better. – Mike2012 Apr 4 '12 at 18:12
Fantastic ! As Mike, that's just incredible ! – Jean-Rémy Revy Nov 30 '12 at 14:49

An alternative is to use mini-panels instead of custom blocks as been suggested here. They work much the same, and panels appear to be better supported by features. If you already plan to use panels, this also saves a few extra modules.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.