[development] Converting stories to pages
Walt Daniels
wdlists at optonline.net
Tue Jan 2 05:03:03 UTC 2007
I agree not worth a core feature. In my case it is only 5 nodes that got
"typed" wrong as stories. A quick cheap fix is fine.
In a CCK world I can imagine types that have identical fields but are
distinguished some other way such as have different themes.
_____
From: development-bounces at drupal.org [mailto:development-bounces at drupal.org]
On Behalf Of Khalid B
Sent: Monday, January 01, 2007 11:46 PM
To: development at drupal.org
Subject: Re: [development] Converting stories to pages
I don't think this is worth of a core feature.
The need for this is not very often, and if you are using anything other
than
4.7 basic types (e.g. CCK for 4.7, or 5.0 onwards), then all bets are off.
On 1/1/07, Larry Garfield <larry at garfieldtech.com> wrote:
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 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';
--
Larry Garfield AIM: LOLG42
larry at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/development/attachments/20070102/2c824a4f/attachment.htm
More information about the development
mailing list