Sha256: f5c9f6448986bb2b9f394ddbab0a7c0fc6e8b8c8eb91f135d534ca8fa74c7a59
Contents?: true
Size: 664 Bytes
Versions: 4
Compression:
Stored size: 664 Bytes
Contents
require_dependency 'application_controller' class CopyMoveExtension < Radiant::Extension version "#{File.read(File.expand_path(File.dirname(__FILE__)) + '/VERSION')}" description "Adds the ability to copy or move a page with or without its children" url "https://github.com/jomz/radiant-copy-move" 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', :after => 'actions_column_header' admin.page.index.add :node, 'copy_move_extra_td', :after => 'actions_column' end end
Version data entries
4 entries across 4 versions & 1 rubygems