Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: f9c3b7dc67
Fetching contributors…

Cannot retrieve contributors at this time

15 lines (12 sloc) 0.47 kB
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
Jump to Line
Something went wrong with that request. Please try again.