# Move pages and find\_all?

**URL:** <https://www.ruby-forum.com/t/move-pages-and-find-all/78771>\
**Category:** Radiant CMS\
**Created:** [December 8, 2006, 1:28pm UTC](https://www.ruby-forum.com/t/move-pages-and-find-all/78771 "2006-12-08T13:28:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Todd\_McGrath](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/e19b73/32.png) [@Todd\_McGrath](https://www.ruby-forum.com/u/Todd_McGrath)\
**Post date:** [December 8, 2006, 1:28pm UTC](https://www.ruby-forum.com/t/move-pages-and-find-all/78771/1 "2006-12-08T13:28:30Z")

</div>

Hi everyone!

I’m looking for some functionality in .5.2. I’ve searched the mailing  
lists and documentation, but no dice. Any thoughts, opinions, patches  
on the following appreciated

- is there some kind of “find all” functionality? I need the \<r:find  
url="/"\> to recurse through children of children of children. If I’m  
understanding things correctly, \<r:find url="/"\> goes 1 level deep and  
that’s it.

- any way to move pages?

Todd M

---

<div class="post-metadata">

**Author:** ![Todd\_McGrath](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/e19b73/32.png) [@Todd\_McGrath](https://www.ruby-forum.com/u/Todd_McGrath)\
**Post date:** [December 8, 2006, 1:58pm UTC](https://www.ruby-forum.com/t/move-pages-and-find-all/78771/2 "2006-12-08T13:58:33Z")

</div>

Todd,

On your first point, look on the wiki or weblog for information about  
creating a sitemap. That has the recursive-ness that you’re looking  
for.

On your second point, there have been several different patches to  
handle re-parenting, but I don’t think the core team has accepted any of  
them. There’s definitely room for another, if you’re up to the  
challenge. Otherwise, you can do what I do: use script/console, find  
the page you want to move and its new parent page and do this:  
parent.children \<\< child.

Cheers,

Sean C.  
[seancribbs.com](http://seancribbs.com)
