Closed (fixed)
Project:
Drupal core
Version:
x.y.z
Component:
database system
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
19 Oct 2005 at 19:02 UTC
Updated:
2 Sep 2006 at 15:30 UTC
New modules which define more than one content type are supposed to prefix the names of $node->type with the name of the module.
This I have done for the 'address' type of my cvbuilder module.
Everything works just fine, except Drupal silently enters the wrong value into the type field in the node table, truncating it at 16 characters. End result: nodes cannot be edited, and theme() functions have no effect on them.
Just wasted 2 days of my life tracking this one down.
Suggested change: ALTER TABLE node MODIFY type varchar(64);
You may consider 64 to be too long. Fair enough. But 16 is *way* too few for modules which define multiple node types.
Comments
Comment #1
handelaar commentedAlso required for this to unfail:
ALTER TABLE vocabulary_node_types MODIFY type varchar(64);
[Thanks to JonBob for that catch]
Comment #2
jonbob commentedA big +1 for this. CCK is pretty constrained by the current limit, as "content-" takes up half the available field. 32 would be nice.
Comment #3
magico commentedIn the HEAD was modified to 32.
Comment #4
(not verified) commented