Forum: Radiant CMS Is there a way to change the parent of a page?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
26e819368c347129c19bc9ca94b7fb15?d=identicon&s=25 Frank Church (Guest)
on 2007-06-18 12:20
(Received via mailing list)
I created an article under the wrong parent and need to correct that.


Is there a way to do this, or is it better done inside the database
itself?

I can delete the article and recreate under the right parent, but I'd
like to know how anyway?
D03835ee1210e4251e8c1a3976a38bc5?d=identicon&s=25 Andrea Franz (Guest)
on 2007-06-18 12:27
(Received via mailing list)
You can use the CopyMove extension:

http://darcs.bigchieflabs.com/radiant/extensions/c...

Let me know if it's what you need!


> Post:   Radiant@lists.radiantcms.org
> Search: http://radiantcms.org/mailing-list/search/
> Site:   http://lists.radiantcms.org/mailman/listinfo/radiant



-----
Andrea Franz

andrea@bigchief.it
http://bigchieflabs.com/blog/
http://think.bigchief.it
8802b1fa1b53e2197beea9454244f847?d=identicon&s=25 Sean Cribbs (Guest)
on 2007-06-18 15:06
(Received via mailing list)
If you're a little shell and Ruby-savvy, there's script/console.

$ ruby script/console production
>> new_parent = Page.find_by_url "/url/to/parent"
>> child = Page.find_by_url "/path/to/child"
>> child.parent = new_parent
>> child.save


Sean
This topic is locked and can not be replied to.