Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (12 sloc) 470 Bytes
class PagePreviewExtension < Radiant::Extension
version "1.1"
description "Enables previewing pages from the edit screen"
url "http://github.com/mislav/raidant-page-preview-extension"
define_routes do |map|
map.connect 'admin/preview', :controller => 'preview', :action => 'show'
end
def activate
admin.page.edit.add :form_bottom, 'preview/preview_iframe', :after => 'edit_buttons'
Admin::PagesController.helper PagePreviewHelper
end
end