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

yhahn’s picture

Hi 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.

kyle_mathews’s picture

I 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.

yhahn’s picture

Assigned: Unassigned » yhahn
Status: Active » Fixed

Hi 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.

kyle_mathews’s picture

Cool, looking forward to helping out. Thanks for all the great work btw re: context/spaces/features. It's saving me a ton of time.

Status: Fixed » Closed (fixed)

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