Closed (fixed)
Project:
Context
Version:
6.x-2.0-beta2
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
1 Jul 2009 at 01:04 UTC
Updated:
23 Jul 2009 at 15:00 UTC
Both types of exporting aren't working.
If I export to code and add the context definition to my module, context doesn't *see* the added code.
If I export the array that defines the context and then try to import it in another drupal install, nothing happens on the import end.
I'm guessing you know import/export aren't working -- so this issue is more a question about what's happening and when you think things will be fixed. Or has context export been sidelined in favor of exporting/importing features?
Comments
Comment #1
yhahn commentedHi Kyle,
The exporting should be working -- are you providing the exported context in hook_context_default_contexts() in your module? Import should work as well, but it is a little cryptic -- you need to return the context array you are importing.
Let me know if that helps.
Comment #2
kyle_mathews commentedI had some time to look at this again today and got the export working now. This doc page tripped me up -- http://code.developmentseed.org/context/node/46 -- It's outdated now I guess.
Is there anything that we (speaking as the community) can do to help with the documentation? With the coming release of open-atrium, the ecosystem of context/spaces/features users is going to grow even larger meaning even more new developers are going to need help. It'd be great if the documentation was also hosted on drupal.org. I understand the rational behind having code.developmentseed.org but it means I and others can't help.
I'll be spending a fair bit of time over the next while learning the three modules and would be happy to fill in gaps in documentations if possible.
Comment #3
yhahn commentedHi Kyle -- I totally agree. The project structure of code.ds.o was partly an experiment / demonstration of how we thought Drupal.org project pages could work and I know some of those ideas are working their way into the d.o redesign.
I'll look into setting up d.o documentation so everyone can help contribute and keep it up to date.
Comment #4
kyle_mathews commentedCool, looking forward to helping out. Thanks for all the great work btw re: context/spaces/features. It's saving me a ton of time.