Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

29 lines (23 sloc) 0.928 kb
# Uncomment this if you reference any of your controllers in activate
# require_dependency 'application'
class FlashGalleryExtension < Radiant::Extension
GALLERY_PATH = '/galleries'
version "0.2"
description "Create and manage Flash image/media galleries with SlideShowPro"
url "http://github.com/zapnap/radiant-flash-gallery-extension"
define_routes do |map|
map.namespace 'admin' do |admin|
admin.resources :galleries, :collection => { :publish => :get } do |gallery|
gallery.resources :items, :controller => :gallery_items,
:member => { :move_higher => :post, :move_lower => :post, :move_to_top => :post, :move_to_bottom => :post }
end
end
end
def activate
admin.tabs.add "Galleries", "/admin/galleries", :after => "Layouts", :visibility => [:all]
Page.send :include, FlashGalleryTags
end
def deactivate
admin.tabs.remove "Galleries"
end
end
Jump to Line
Something went wrong with that request. Please try again.