Well, for 4.7.x page and story nodes, it's easy to implement. How easy would it be for Drupal 5 nodes, where every node is essentially a CCK node? Then add in actual CCK fields? Now it gets quite complicated indeed, unless you're OK with random data loss along the way. On Monday 01 January 2007 10:13 pm, Chris Kennedy wrote:
You should also submit a feature request for Drupal to have an interface for this. It would be handy and easy to implement.
Walt Daniels wrote:
Thanks, I did read the code in both story.module and page.module and they are quite similar other than the help text and names of variables story vs page. However page has some additional code in hook_form dealing with logs of changes which looks useful.
------------------------------------------------------------------------ *From:* development-bounces@drupal.org [mailto:development-bounces@drupal.org] *On Behalf Of *Khalid B *Sent:* Monday, January 01, 2007 9:17 PM *To:* development@drupal.org *Subject:* Re: [development] Converting stories to pages
Changing it in PHPMyAdmin should be a safe bet, since story and page have the same identical fields, and stored in the node table.
So, you can execute this SQL (do a dump first):
UPDATE node SET type = 'page' WHERE type = 'story';
-- Larry Garfield AIM: LOLG42 larry@garfieldtech.com ICQ: 6817012 "If nature has made any one thing less susceptible than all others of exclusive property, it is the action of the thinking power called an idea, which an individual may exclusively possess as long as he keeps it to himself; but the moment it is divulged, it forces itself into the possession of every one, and the receiver cannot dispossess himself of it." -- Thomas Jefferson