[development] Converting stories to pages
Chris Kennedy
chrisken at mail.utexas.edu
Tue Jan 2 04:13:05 UTC 2007
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 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
> <mailto: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?
>
>
More information about the development
mailing list