We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [features]

Use it for questions about the module used by site developers to export elements of a site configuration to use them in another site.

Filter by
Sorted by
Tagged with
41
votes
1answer
986 views

I need to bring a site to version control, and set up the continuous Integration environment

I am an entrepreneur with a Drupal 6x project that started small enough to not need version control (per developers), but now I am convinced there is no way without it. There's extensive documentation ...
28
votes
4answers
9k views

Adding components to a feature via Drush

I understand using 'drush fu' to look for changes to any components of an existing feature, but is there a way to add a component to an existing feature using drush? Right now I have to use the /admin ...
24
votes
5answers
8k views

Unable to delete feature content type after uninstalling feature

Issue Uninstalling a feature which creates a content type hides the "Delete" link on the admin/structure/types. Issue on Drupal.org
21
votes
8answers
14k views

Revert a Feature Component programmatically

I have a Feature installed using an Installation Profile. But I always have to go and Revert a particular Component so that it's no longer Overridden (so that, for example, the Feature's Blocks appear)...
21
votes
5answers
10k views

Why would some features still show Overridden after a revert all --force?

Why would some features still show as "Overridden" even after running a full features revert with the force switch? Below are the commands I am running, for the sake of clarity. drush fr-all --force -...
19
votes
2answers
1k views

How to use the Features module in a 3 dev environnement?

Working on a project, making heavy use of Features, there is sometimes 3 devs for this application. We have tried a few approaches, but when we merge our git branches it seems we often 'over-write'...
18
votes
1answer
712 views

Technical advantages of either Configuration or Features over the other?

In short, Configuration vs Features, in Drupal 7, fight! As always, technical advantages, or other hard facts, as we don't do discussions here. Drupal 7 specific to limit to scope, as CMI vs Features ...
17
votes
3answers
5k views

How to choose between Bean, Boxes and Fieldable Panels Panes?

Bean, Boxes and Fieldable Panels Panes all provide similar functionality. I have trouble understanding what exactly the differences between them are. What are their advantages/disadvantages compared ...
16
votes
3answers
10k views

How do I resolve this conflict between two Feature modules?

I have two content types with various menus, views, menus, etc. which I have packaged as two Feature custom modules. The two content types both use a taxonomy and use several of the same fields in ...
15
votes
1answer
490 views

When using features to manage deployment, should I break my functionality into many little features or one big feature?

I'm relatively new to the features module and I've read contradictory recommendations online regarding whether it's easiest to maintain A) one big feature or B) several smaller features and then a "...
14
votes
1answer
12k views

Export content types using features [closed]

I am struggling with it, but I can't do it by myself. Google doesn't gave me links for tutorials other modules doesn't help me too. I would like to export content types definition from Drupal site to ...
14
votes
4answers
3k views

Features workflow issue with deleting a field

Suppose I have a content type Person with fields: Name, Age, Email This content type is controlled by a Feature called test so I can source control it and push it to the live site. My workflow goes ...
13
votes
5answers
9k views

Unable to install … already exist in active configuration

On Drupal 8.1 I keep running in those kind of messages when I try to activate a custom module or a custom feature that makes some modification to the basic page. (add fields). It is really annoying.....
13
votes
3answers
9k views

Exporting block settings in a Feature (Drupal 7)

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 ...
12
votes
1answer
3k views

Export multilingual settings with features

I'm using features to export 10 content types, but I don't get the multilingual settings. My question is, whether this is even possible, maybe with strongarm or I'm stuck having to change those ...
12
votes
2answers
818 views

How should I balance Features and Installation Profile in a Code Driven Development workflow?

Drupal Installation Profiles (in Drupal 7) are pretty powerful and can do just about anything a module can do. I'm using an Installation Profile along with Features to develop my site, keeping ...
10
votes
1answer
9k views

How does `drush features-update` work?

I have made changes to a Feature on a Drupal 7 site. I want the same feature to be updated in another website. How to do it using the drush features-update command? When I run it, it asks to ...
9
votes
8answers
8k views

Adding a theme suggestion programatically

I created a feature module containing only a view and a content type. Right now my page-node-x.tpl.php and my views-view-y.tpl.php files lie in my themes directory. Is it possible to move them into ...
9
votes
2answers
6k views

How to delete a Feature?

I created a feature module in site-1. Then I instaled the feature module in site-2. This features creates a new content type and enable a module. Then I got the new content type and the module ...
8
votes
3answers
5k views

Delete a feature but keep the content created by it

Is it possible to keep the data created by a feature after deleting feature itself? I created a migration feature that is really just a one off; I would want to delete it without losing the nodes ...
8
votes
2answers
2k views

Remove components from a feature using Drush

Using Features UI to manage a big feature components is a tedious task. Therefore in order to add a new component I use drush fe myfeature views_view:myview1 Now how I remove the uneeded component ...
8
votes
1answer
6k views

How can I use the UUID API?

I am aware that the question is (almost) a duplicate of the following question #21991, which has been posted back in 2012. But that question is NOT related to Drupal 8, where UUID is in core. ...
8
votes
2answers
781 views

Features versus Configuration Management

I am building a Drupal 8 site and I have done some research whenever I should use Configuration Management or Features to export configuration and include it in my profile. In order to export and ...
7
votes
4answers
4k views

How do I properly add css to my feature?

I have a feature that just contains a few views. How do I properly add a stylesheet to it?
7
votes
4answers
3k views

cannot track view with features

I'm using Features to create a feature called foo which tracks content types and views so they can be described in code, committed to my repository and eventually pushed into the staging and ...
7
votes
2answers
6k views

How to export Panels and Mini Panels with Features?

I am trying to export the Panels and Mini Panels on my website with Features. On the features drop down menu, there is an option for "Panels: panels_renderer_pipeline". However, when I click on it, ...
7
votes
1answer
2k views

What does features_exclude mean in a features info file?

I found this line in the *.info file of one of my feature modules. features_exclude[field_base][field_block] = field_block I did find a number of drupal.org issues dealing with this, but no ...
7
votes
1answer
4k views

Features conflicts when field bases are used by other feature

I recently downloaded the Features module and was so glad over how smoothly I now can export functionality from dev to prod. But now when I'm trying to create a second feature I'm getting conflicts ...
7
votes
1answer
165 views

Do features uninstall variables when a module is uninstalled?

I have created a module using The Features module. The module exports some variables using the Strongarm module. If a person installs the module and then uninstalls it, will those variables be ...
7
votes
2answers
6k views

Export content in features using UUID features

I read the UUID feature description and it says it is used to export content in feature. I installed the module but did not know how to export the content.
7
votes
3answers
165 views

How do you change which content type a field is attached to (which one owns it?)

While exporting configuration for my site using the Features module, I noticed that one of the fields I use on many content types was initially created on the "news" content type instead of the "...
7
votes
2answers
2k views

Export configuration translation

Using Drupal 8, I need to create several content types. They'll be used in a multilingual site, so I installed the Configuration Translation module from the core to translate the field labels. I can ...
6
votes
2answers
644 views

How to transfer a block from one site to another?

I've built a block on my local site and now want to transfer it to a remote site. I thought this was done via Features, so downloaded the feature files and placed them on my remote server. On the ...
6
votes
1answer
474 views

What does the menu_masks variable do?

When I was building a feature (as in Features), I noticed the menu_masks variable. I have read menu_get_ancestors() and _menu_router_save() but I still don't understand what it does. On a more ...
6
votes
1answer
2k views

How does one change the machine name of a Feature?

I have created a feature with a typo in the machine name. I've tried just search/replacing instances of the misspelling with the proper spelling in all files within the feature's directory, but when I ...
6
votes
2answers
4k views

Export menu as feature?

How can I export a menu as a feature? I found the menu import module, but it does not work with this feature.
6
votes
4answers
2k views

How to create a vocabulary and populate it with terms using features

I'd like to create a feature that creates a vocabulary and populates it with taxonomy terms. Creating a vocabulary is easy with features and it can be done using UI (I only need to select the desired ...
6
votes
2answers
142 views

Can one feature module make additions to another feature module?

I would like to have two feature modules for users to enable. One basic and one advanced. For example, the basic feature creates a blog content type, with only title and body fields. The advanced ...
5
votes
6answers
4k views

Enable new modules dependencies on deploy

How can I automatically enable new dependency added on a custom feature (or standard modules) with drush? After getting the new code, my deployment script basically run: drush cc all drush fra But ...
5
votes
3answers
2k views

How to Import features back to database

I have lots of feature modules in my site. I want to import it back to database for upgrade purposes. Any idea how can I do that?
5
votes
2answers
1k views

How can I make a module's configuration exportable by features?

At a high level, what needs to be undertaken to take a module's configuration data and make it exportable by Features? Whether this is a contrib module that does not yet have Features support or a ...
5
votes
1answer
359 views

.inc files in Features - how are they being included?

Regarding the features module: I am working with a module which was created by features. I see a lot of .inc files in the module, but see very few actually included. Does this make any sense? I know ...
5
votes
1answer
74 views

Should I enable a feature I created on the same site?

I created a view and some configurations and used features to save it into code. When doing so, I used the GUI interface and selected Advanced Features and named a file path (sites/all/modules/custom) ...
5
votes
1answer
2k views

How does one create terms on hook_install if hook_taxonomy_default_vocabularies is used in the same module?

I'm attempting to create taxonomy terms in a module that provides the vocabulary needed to create these terms. The issue I'm having is the vocabulary is not available upon install. My module ...
5
votes
1answer
2k views

Bulk enable/disable modules

I have just begun development on a Drupal 7 site in a team of three and I am trying to determine the best practice for versioning. This is causing me a bit of a headache because much of the work on a ...
5
votes
2answers
2k views

How can I manage site translations in code?

I have a site with multiple translations, including a heavily customized version of the default Drupal "English." (The use case requires that a lot of the help text and labels throughout Drupal be ...
5
votes
1answer
2k views

Can I rename a module?

I foolishly created a features module and named it events. This is bad because, of course, there is a registered module with that same name. So the update status report is always in error and drush ...
4
votes
2answers
4k views

How do I change the overridden feature to default

I got "overridden" for two settings. I wanted to know why this is happening, and how to get rid of it in a proper way.
4
votes
1answer
4k views

Remove features without lose functionality

I'm working on a project where in the past was added a lot of features and was did in a way where right now a lot of them has a lot of circular dependencies and conflicts. I want to start again, ...
4
votes
5answers
3k views

How to delete Content Type created through features

I was trying to use a project feature from openAid features based distribution. So I copied all the features from that distribution and required contrib and custom modules in my drupal installation. ...