I am a new Drupal user, so please keep that in mind (ie: when using terminology).

I think I know the core concept here: in a nutshell it takes code from one database (in my case from my local dev box), and puts it into a file format so you can upload it to a remote server (staging environment for me). Once there you can then 'Revert' that feature so it writes the information to the remote site's database.

What I'm having trouble with is adding and removing components to a Feature.

My task at the moment is to update a 'Products' feature which contains the various elements that make up a products page. This includes adding or removing a number of panels and mini-panels. My problem is how do I actually 'save' these changes to the Feature?

Someone else has already created a Feature that includes several of these components, but when I Generate the feature again after my changes, and move the files to my remove server I find nothing changes (including after I clear all caches).

Would anyone be able to give me a simple run down of how to actually have this work?

Please feel free to ask any questions too, if I haven't been clear.

Many thanks in advance.

Comments

yelvington’s picture

Features lets you capture a bunch of config and write it out to a module file. You then move the module file to the destination site and install it.

You "revert" ONLY if you have made changes to the destination site AFTER the module was installed, and then want to discard them. You might want to do that if you've made further changes on the source site, and promoted a new version of your module to the destination.

Jlols’s picture

Ah thanks for picking that up.

So, would you know how/what the correct way is to capture the configs? I see there is a bunch of checkboxes on a Feature's Recreate tab and I do see some of the panels and mini-panels among them but some are not present. Should I be telling the panel or mini-panel that it can be Featured when I create it (I assumed they would appear in the list automatically)?

Jlols’s picture

I guess a better way of what I'm asking is to give an example.

Just now, I updated a Page Variant to include a title component in it's header region. I would assume I would include that title as part of the feature, but I cannot find it among the checkboxes. What do I do to include this as part of my feature?

My end goal is to simply not have to recreate the Page Variant with this title component when I work on the remote site.