Closed (fixed)
Project:
Decisions
Version:
6.x-1.x-dev
Component:
User interface
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Oct 2006 at 18:13 UTC
Updated:
29 Oct 2006 at 04:15 UTC
"decision - poll" and "decision - ranking" are currently only shown in the "create content" menu, and not on the "create content" page.
Comments
Comment #1
ChrisKennedy commentedApparently creating separate content types is a big thing, requiring custom function names for each content type. I had hacked the functionality by adding separate menu links, but this isn't the right way to do it. Eventually it will require a bunch of extra fixes, and potentially splitting the different modes into distinct .module files, which will facilitate better customization.
Comment #2
ChrisKennedy commentedI was able to get this working by modifying decisions_node_info to show two content types (decisions-ranking and decisions-poll) but to have them use the same module basename for functions (decisions_*). So now each function figures out which type it is by examining node->type via _decisions_get_mode(). This is a big change that might have various hard to find bugs. See http://drupal.org/cvs?commit=42651
Comment #3
ChrisKennedy commentedI should also be clear that this change will invalidate all previously created decisions.
Comment #4
(not verified) commented