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.
32
questions
19
votes
2
answers
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'...
20
votes
8
answers
15k
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)...
14
votes
1
answer
521
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 "...
6
votes
4
answers
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 ...
4
votes
1
answer
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, ...
23
votes
5
answers
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
18
votes
3
answers
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 ...
13
votes
1
answer
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 ...
4
votes
0
answers
978
views
Difference between using features, strongarm & ctools exportable api [closed]
Whats the difference between using features, strongarm or the ctools export api to export config settings?
I cannot use the features modules so I need to find an alternative because its not part of ...
2
votes
2
answers
56
views
Use feature as module?
Does anyone have experience with using a feature as a module?
The usage I am talking about is strictly placing hooks inside the .module file.
Can that trigger any sort of bug?
42
votes
1
answer
1k
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 ...
12
votes
4
answers
4k
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 ...
7
votes
2
answers
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.
5
votes
1
answer
390
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
2
answers
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
1
answer
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 ...
5
votes
6
answers
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 ...
3
votes
3
answers
12k
views
How to run cron more often than every hour?
I'd like to run cron every 5 minutes, but the UI doesn't offer any increment of time smaller than an hour. I'm assuming the solution is as simple as
creating a feature module for the setting, and ...
3
votes
1
answer
203
views
Is it possible to export arbitrary configurations?
I'm trying to create feature modules for as much as possible, such as
my backup schedule (for the Backup & Migrate module)
my shortcut sets
etc. etc.
and I'm surprised how much can't be exported ...
3
votes
1
answer
2k
views
How to create content type programmatically with fields and vertical tabs
I'm creating a module using Drupal7.26 and want to create content type with different type of fields like radio/checkboxes/drupdown and textfields.
I'm following the last comment by Jason Gray in THIS ...
3
votes
1
answer
675
views
New Relic performance monitoring and the Features Module
We've just started using New Relic to monitor our D6 sites, and are also taking advantage of New Relic's ability to report on Drupal module performance.
Our sites contain several modules with ...
3
votes
2
answers
912
views
How to integrate custom code into a "Features" feature
My specific problem:
In a Feature, I have a View. I want to use this View on several different sites. The View has a nid-argument, which validates Node:type == [node_type_1]. When the Feature get's ...
3
votes
3
answers
204
views
User roles and keeping their IDs when using features
I have defined some user roles and I'm assigning them to users through the rules module. I have created a feature with the rules and the roles and moved them to another site. My problem is that the ...
2
votes
1
answer
221
views
Features and CMI Together
We are developing a single Drupal 8 site with a set of different features (content types, etc). The CMI approach is great for sharing config through git and importing/exporting on local, dev, stage, ...
2
votes
3
answers
2k
views
How to export custom entity using Features?
I am trying to export custom entity using Features module but I am not able to see anything under create features.
I have enabled exportable as TRUE in hook_entity_info.
I have already added ...
2
votes
1
answer
2k
views
Exporting settings in a code with Features / Strongarm - how to detect right variables - config ones
Many modules does not support Features, so I need Strongarm module to export config in the code. But in situation where i have many contrib modules, it seems tedious work. not all variables are named ...
2
votes
4
answers
812
views
How to make a Feature available only to certain Spaces? [closed]
For a Drupal 6 Open Atrium site (i.e., Features, Spaces, Organic Groups) I'm running, I've created some custom Features that only really apply to a handful of the hundreds of groups on the site.
As ...
1
vote
3
answers
352
views
Views display settings are in the database but don't show up in views UI
I'm trying to create a copy of a live site and use it as a test site, but am having trouble with views. There's a view whose settings are in the database but don't show up correctly in the views UI.
...
1
vote
1
answer
165
views
Does hitting 'recreate' recreate the feature from the site's elements, or vice versa?
Does hitting 'recreate' recreate the feature from the site's elements, or vice versa?
I tried hard looking to this in the documentation, but I couldn't find a clear explanation.
1
vote
1
answer
226
views
How do I add a view with a module when installing a module?
In Drupal 8, I want a view to be created when a module is installed.
I have already used the Features module to export the view, so I have the yml file that creates the view. I can't find what to ...
0
votes
4
answers
3k
views
Export blocks with features extra
I installed the Features extra module to export custom made blocks in my Drupal 7 environment. But for some reason, it doesn't work...
What I do is the following:
I create a custom block
I give ...
0
votes
1
answer
262
views
Simpletest: database exception during setUp
I'm writing lots and lots of test cases for different modules and have come across a rather strange error about which I'm hoping others may have more insight. In my setUp function override, the first ...