Hi,

I went to try an export my quiz content type with the features module and it is unavailable for export. How can this be? I use features to help me manage the database between production and development etc... Now it looks like I'll have to make changes to the quiz content_type both places?

Is there any other way to export/import quiz config?

Thanks,

Dallas

Comments

pandaPowder’s picture

Version: 7.x-4.0-alpha9 » 7.x-4.0-alpha12
Ismaels’s picture

Version: 7.x-4.0-alpha12 » 7.x-4.x-dev
Category: support » feature

I'm experiencing the same problems (/Missing the same feature). Does anyone has a solution to make the Quiz module work with Features? Would this be a lot of work?
The reason i need the Quiz module to support features is because of the same reason as above, i have to manage the database settings between the different code environments.

Indicated this issue as a feature request instead of a support request.

Modules I have used are Quiz 7.x-4.0-beta1 and Features 7.x-2.0-rc1 (also tried Features 7.x-2.0-beta2).

Thanks in advanced!

Ismaël

pandaPowder’s picture

I just wanted to post here and say that I found out that, although you cannot export the content type itself, you can create a feature that contains all the extra fields (field instances) you added to the quiz content type. When I enable that feature on staging, the fields are bundled to the quiz content type correctly (and display options set). So, for my purposes that was all I needed. I suppose if you wanted to manage the content type itself, then this is still a problem, but I'm usually concerned with fields. I was pleasantly surprised that it worked.

*Edit* the maintainers would be better able to say if this finding can have some effect on this issue (close or lower priority maybe)

zuernBernhard’s picture

Component: Code - Import/Export » Code - Quiz core
Issue summary: View changes

Subscribe - This would be great!!!

djdevin’s picture

Status: Active » Closed (won't fix)

Quizzes are "content" and really should not be featurized - they do not have machine names or default configurations, and I don't know how you would "revert" a Quiz. You can already export the content type and fields itself, plus the question fields etc, and all the settings that are variables.

You may be able to use something like https://www.drupal.org/project/uuid_features, or any other type of exporter like https://www.drupal.org/project/node_export. I've had to export quizzes and questions from one site to another and have been able to do it with node export.

But, this shouldn't be functionality that we add to Quiz core as there are many solutions already out there. At the very most we could hook into those modules to do Quiz-specific things if it is not covered.

#2397863: Add uuid to quiz_question_relationship entity has some UUID support, which would help an importer re-associate questions to quizzes.

timos’s picture

Hi

Problem does not seem to be unable to export in features quiz instance but quiz content type...

It's very strange as i wonder quiz module create a quiz content type in a standard way and features could detect it.

Actually, it detect it when you use drush but not in UI....

Timos

rogical’s picture

Title: No integration with features module? » Allow Quiz global config integration with features module
Version: 7.x-4.x-dev » 7.x-5.x-dev
Status: Closed (won't fix) » Active
djdevin’s picture

Status: Active » Closed (duplicate)