By pdjohnson on
Are there any good references for creating custom content types via modules in Drupal 5. I have had success with the tutorials via version 4.7 however I dont seem to get my custom content type to appear which I visit Create Content.
Any helpers, pointers to articles or posts much appreciated.
Comments
It's easy
Voila! :)
I dont want to use CCK
Thanks, I know about that, however I would rather use a module since I want to add some special features to the content type forms which wont be available via the CCK. So anyone out there done any content type modules in 5.0???
--Paul Johnson
Need the same thing
I would like my custom module to come up as a new content type (NO CCK), so I can enable other modules functionality for it. Are content types only for CCK nodes?
There doesn't seem to be any documentation on this...only for 4.7...
wouldn't the audio module or
wouldn't the audio module or video module which creates their own content be a good path to follow ? reverse engineering them a bit may be fruitful ?
Good suggestion
But I can't find anything in there that is obvious. Initially I thought it needed a node_type_safe call, but that is nowhere to be found in the audio module or installer. Apparently an entry in the node_type table is now required - I copied an existing entry and modified it to suit, but still no luck.
Bump
Can anybody post some code that would create a new content type via a module. It doesn't actually have to do anything, just appear in the list of content types and by available for other modules to add functionality (i.e. Event, Location etc.).
Thanks in advance...