Closed (fixed)
Project:
Features
Version:
6.x-1.0-rc3
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
14 Jun 2011 at 12:49 UTC
Updated:
9 Sep 2011 at 18:41 UTC
just noticed an odd behaviour when using features to migrate content types from site A to site B...i.e. it doesn't appear to store organic group settings with the content type.
anyone else noticed this?
Comments
Comment #1
hefox commentedAre you using strongarm and did you select the organic group variables related to that content type?
Comment #2
Dublin Drupaller commentednot using strongarm and iirc I did select the og fields. will run through it again to try and recreate the problem
Comment #3
hefox commentedThings like og settings are stored in the variable table and not exported with the node type. Check out strongarm.
Comment #4
Dublin Drupaller commentedthanks Hefox. are you sure? when I say og settings..I mean as follows (using a node type called campaign for iillustrative purposes):
if I goto admin -> content management -> content types -> campaign -> edit
and set the group settings there as a STANDARD GROUP POST or GROUP NODE...that setting doesn't seem to come across using features. i.e. I have to manually go back into each content type on the new site and manually make that change. I'm almost certain that setting isn't stored in the variables table.
hope that makes sense..
dub
Comment #5
hefox commentedUse strongarm; those settings are stored in variables and not exported with the node type. Most node type settings are.
Comment #6
Dublin Drupaller commentedjust checked hefox. the settings are stored in the og table.
Comment #7
hefox commentedThe og table, which is keyed by nid, is where the settings for group nodes are saved, not the overall content type settings.
Comment #8
Dublin Drupaller commentedthe overall content type settings appear to be handled correctly by features..but the og settings (og table in db) I'm referring to don't appear to be coming across when using features.
Comment #9
hefox commentedUnless you're exporting nodes and being very confusing, THIS is a variable. You need to choice it and export it with your feature using strongarm.
Comment #10
Dublin Drupaller commentedsorry hefox...perhaps i wasn't clear in my earlier post. I'm not exporting nodes..I'm using features.module to migrate content types from site a to site b.
i'll have a look at strongarm.
Comment #11
Grayside commentedDublin: You are being clear, but it looks like you are confused about how OG stores different types of data.
The fact that a given content type can be used as a group node is stored as a Variable which is saved "Group node/standard group post/etc" in the content type form. As such, you need to do a variable export to get that configuration into your feature, and that requires strongarm.
The details of how nodes and users are associated with group nodes is stored in database tables.
Comment #12
technivant commentedI had the same trouble with this. og_usage variables in features only showed up after I selected Organic Groups module as a Dependency (which wasn't auto-detected from my content types).
Comment #13
hefox commentedTMK this has been answered. Anyhow, wrong issue queue if it hasn't; either OG or strongarm would be one needing to provide this.
Comment #14
Grayside commentedAs a feature request, this is a duplicate of #749930: Add features intergration. As a support request, answered and fixed ;)