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';

On 1/1/07, Walt Daniels <wdlists@optonline.net> wrote:
I have mostly pages and a few stories. There is no obvious reasons why the
ones that are stories are stories so I would like to convert them to pages.
Obviously I can do this by pasting the story stuff into a new page. But then
all the links will still go to the old story and I would have to find all
the links and fix them. I have not seen any way of finding all the links to
a particular node.

What woud happen if I just went into PHPMyAdmin and changed the type field
from story to page? Would this break anything?