Having created an entry as a page, I then created another content type 'news' - into which I want users to be able to post items.

Can I move the entry created as a page, into news?

Comments

beautifulmind’s picture

Well, one solution to your query is just create another news, and copy-paste the content of the page you created previously.
Another solution is, if the fields are not different, just browse to the database record for that page, make it of type 'news'. But make a backup of it first.

:)
Beautifulmind

Regards.
🪷 Beautifulmind

gulliver’s picture

The cut/paste always seemed the sane way - I just wondered if it is possible to move content types... I'm thinking about some future time when the 'damn, I wish I'd set it up differently' moment comes and there cold be lots of stuff to move.

mcjim’s picture

In theory it's simple, as it's just a column in the node table that needs changing (see http://drupal.org/project/nodetype).

*BUT*

Once you start using more complicated content types with lots of CCK fields, then it gets tricky.

This may be what you need: http://drupal.org/project/node_convert

I haven't tried it, though.

gulliver’s picture

Thanks.

I stayed clear of nodetype as it clearly states: Only use it when you know *exactly* what you're doing.

That ain't me.

node_convert looks as though it'll do the job - but it didn't convert the feed.

beautifulmind’s picture

subscribing
:)

Regards.
🪷 Beautifulmind

Iumentum’s picture

Think the best way of doing this is to duplicate the node if you use modules like CCK or other modules there is modifying adding data to the node.
Make a module which load the node first "node_load()" and then save it again "node_save" and then delete the first one "node_delete()".
Using these function will invoke all hooked functions.

gulliver’s picture

Still at the foot of the learning curve, I'll come back to this when I understand things better.

gulliver’s picture

Having had some sleep, I notice a 'URL path settings' option on the entry and which handles aliasing.

Changing the value there seems to switch the entry to another type (although I've not had THAT much sleep and still don't understand a lot of this.

It didn't change the feed, but that's easily done in URL aliases.

Jeez, now I'm wondering if I'm really messing things up.

paintingguy’s picture

I want to move a basic page to a new node as well. Can I do this with D8?