public
Description: It's an extension for Radiant CMS. It allows for a page to be copied (or moved) under a new parent.
Homepage: http://gravityblast.com/projects/radiant-copymove-extension/
Clone URL: git://github.com/pilu/radiant-copy-move.git
Search Repo:
Allow copy/move to copy between sites when multi_site is installed.
seancribbs (author)
Tue Apr 29 12:11:19 -0700 2008
commit  96423a9ad44d441e9f6e59ecfa073c2cf643bfde
tree    ac630bcfa58f06f48e8d0d63ce4ce872cf8690bb
parent  e7858746741f6456fd522c1d0cce2d7b6b987dc7
...
1
2
3
4
 
 
 
 
5
6
7
...
1
2
 
 
3
4
5
6
7
8
9
0
@@ -1,7 +1,9 @@
0
 module CopyMoveHelper
0
   def page_parent_select_tag
0
- home = Page.find_by_parent_id nil
0
- list = build_tree home, []
0
+ homes = Page.find_all_by_parent_id nil
0
+ list = homes.inject([]) do |l, home|
0
+ l.concat build_tree(home, [])
0
+ end
0
     options = options_for_select list, (@page.parent ? @page.parent.id : nil)
0
     select_tag 'parent', options
0
   end

Comments

    No one has commented yet.