Sha256: d84998f635cbdaa41288dcc1606b9dae8fdad48b56324ade4c1c0e43395c089e

Contents?: true

Size: 636 Bytes

Versions: 2

Compression:

Stored size: 636 Bytes

Contents

require_dependency 'application_controller'

class CopyMoveExtension < Radiant::Extension
  version "2.1.2"
  description "Adds the ability to copy and move a page and all of its children"
  url "http://gravityblast.com/projects/radiant-copymove-extension/"

  def activate
    Admin::PagesController.class_eval do
      include CopyMove::Controller
      helper :copy_move
    end
    Page.class_eval { include CopyMove::Model }
    admin.page.index.add :sitemap_head, 'copy_move_extra_th'
    admin.page.index.add :node, 'copy_move_extra_td', :after => "add_child_column"
    admin.page.index.add :bottom, 'copy_move_popup'
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
radiant-copy_move-extension-2.2.0 copy_move_extension.rb
radiant-copy_move-extension-2.1.2 copy_move_extension.rb