[development] Converting stories to pages

Walt Daniels wdlists at optonline.net
Tue Jan 2 02:49:56 UTC 2007

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 at drupal.org [mailto:development-bounces at drupal.org]
On Behalf Of Khalid B
Sent: Monday, January 01, 2007 9:17 PM
To: development at 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 at 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?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/development/attachments/20070101/7b91f58e/attachment.htm 

More information about the development mailing list