Not sure exactly if this is a features issue, or a spaces issue... That being said, here is the issue i'm having.

I am trying to add features to spaces presets, but there are never available when i attempt to create a preset or edit an existing one. The spaces blog example feature is available in my presets, but the new one i created is not available.

I'm new to features, and realize it's still under development. I've attached the sample feature i created for review. I'm sure I'm just missing something when i exported the feature and that is the reason why it's not available in the presets.

The feature itself is pretty basic. just contains a context, custom content type and a view.

CommentFileSizeAuthor
hockey.tar_.gz1.15 KBrockitdev

Comments

tauno’s picture

Status: Active » Fixed

Try editing the hockey.info file in your feature export and add this:
spaces[types] = "all"

That should make the feature available for all spaces types. The project page for spaces makes it sound like this is no longer necessary, but it seemed to still be required on some features I built recently.

rockitdev’s picture

This works now for me. I have updated my modules, and tried some other features exports but the spaces[types] parameters never seem to get exported when i create features.

So, i'm wondering if i may be missing a step when i create my features?

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

atelier’s picture

I had this same problem, which I was able to resolve with the suggestion in #1. My features do not include a spaces[types] directive either even though I selected "Groups space" when setting the context.

atelier’s picture

Status: Closed (fixed) » Active
q0rban’s picture

Status: Active » Fixed

atelier, it sounds like #1 worked for you, so was there another reason you re-opened the issue? If so, can you clarify or open another issue if it's not related to this one?

atelier’s picture

Status: Fixed » Active

Sorry to re-open but I was curious to know if the .info file should include the "spaces[types]" directive automatically or if manual editing is always required. When I created my feature this was omitted from the file.

q0rban’s picture

Status: Active » Fixed

> I was curious to know if the .info file should include the "spaces[types]" directive automatically or if manual editing is always required.

I'm pretty sure manual editing is always required, however once you have it in your feature, future feature updates will keep it in there. Hope that helps!

:)

atelier’s picture

Great - thanks for your help.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.