Panopoly should be moving to using the Migrate module to handle demo content. Changes this will need to be echoed for panopoly_faq too. See #2105503: Implement demo content via Migrate instead of defaultcontent for details. Most of the original discussion is in #1869972: Implement Migrate Module for Panopoly Demo Content
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | 2105513.5-panopoly_faq-migrate.patch | 1.46 MB | mrfelton |
| #2 | 2105513.2-panopoly_faq-migrate.patch | 769.98 KB | mrfelton |
| #1 | 2105513-panopoly_faq-migrate.patch | 769.94 KB | mrfelton |
Comments
Comment #1
mrfelton commentedPatch attached. Same approach taken as per #2105503: Implement demo content via Migrate instead of defaultcontent
Comment #2
mrfelton commentedFix for code style issues
Comment #3
markwk commentedThanks, mrfelton. I'll check on this patch soon. I appreciate your help.
Comment #4
mrfelton commentedComment #5
mrfelton commentedUpdated patch includes binary files properly, and an update hook for users upgrading from an older version which reimports the updated demo content.
Comment #6
dsnopekAre we working on the 1.x or 2.x version of Panopoly FAQ? 2.x is the only one with a download on the Drupal.org page.
Comment #7
dsnopekOk, so to answer my own question based on your patch - we're working on 1.x! So, I guess this will need to be ported to 2.x later.
I tested and enabling it on a new site works great! However, the upgrade doesn't work because the module is renamed from "panopoly_faq_democontent" to "panopoly_faq_demo" and so the
panopoly_faq_demo_update_7001()function will never run.We either need to:
hook_installI think that #3 is probably the cleanest solution! We can set
hidden = TRUEin the .info file so that users won't even know the stub module is there.What do you think?
Comment #8
mrfelton commentedUpdated the enable/disable/update hooks to use new helper function from panopoly_core to handle creating and removing default content in a standard way. Also, only deletes old demo content if it hasn't been edited.
Re #7 - I went with option 3)
http://drupalcode.org/project/panopoly_faq.git/commitdiff/15b1fd7?hp=86f...
Comment #9
mrfelton commentedComment #10
mrfelton commented