Sha256: 46a96863d10387aab4b200d77ce0f2e04ae6a50328dd1e9debbff802d1660e2b

Contents?: true

Size: 702 Bytes

Versions: 3

Compression:

Stored size: 702 Bytes

Contents

class DragOrderExtension < Radiant::Extension
  version YAML::load_file(File.join(File.dirname(__FILE__), 'VERSION'))
  description "Radiant DragOrder allows you to reorder pages funly"
  url "https://github.com/dirkkelly/radiant-drag-order"
  
  def activate    
    Page.send :include, DragOrder::Models::Page
    StandardTags.send :include, DragOrder::Tags::Core
    Admin::PagesController.send :include, DragOrder::Controllers::Admin::PagesController
    
    admin.pages.index.add :sitemap_head, "drag_order_header", :before => "title_column_header"
    admin.pages.index.add :node,         "drag_order",        :before => "title_column"
    admin.pages.index.add :top,          "top"
  end
  
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
radiant-drag_order-extension-0.3.9 drag_order_extension.rb
radiant-drag_order-extension-0.3.8 drag_order_extension.rb
radiant-drag_order-extension-0.3.7 drag_order_extension.rb