Reviewed & tested by the community
Project:
Debut
Version:
7.x-1.x-dev
Component:
Debut specification
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
17 Apr 2012 at 00:23 UTC
Updated:
1 Jan 2013 at 13:32 UTC
A common need in building features is default content--nodes that are created at feature install time.
There are three main use cases for default content:
Ideally, a default content solution will meet all three use cases; but doing so may be challenging, and we may need to settle for different approaches in different cases.
Default content is built into the Open App Standard, with sample content being the main model in mind.
Several options exist for providing default content, including (drawing on the Open App Standard documentation):
Comments
Comment #0.0
nedjoAdd link to #1473398.
Comment #1
lefnire commentedDefault Content looks pretty cool, I hadn't seen that yet. The only ones I can speak to are UUID Features & Node Export.
UUID Features
I haven't had much luck with UUID Features, and it hasn't been updated for a while. I remember having the impression that node_export decidedly trumped uuid_features regarding robustness of the export (fields handled, errors accounted for, etc) -- but that node_export didn't have features integration (a recent addition) which was what necessitated uuid_features in the frist place. In any case, I found node_export superior to uuid_features for this use-case.
Node Export
One thing node_export lacks is the ability to export menu-items linked to the nodes. The menu-items still continue to link to node/5 rather than the new $nid, which is unknown on export. Other than that, node_export is good at what it does.
Comment #1.0
lefnire commentedNote different types of default content.
Comment #2
nedjoComment #3
nedjoMigrate is the clear winner here. With it, we can provide default or sample content and, at the same time, faciliate migration and updates.
Comment #3.0
nedjoAdd Migrate.