Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: a64b7ec8ae
Fetching contributors…

Cannot retrieve contributors at this time

24 lines (19 sloc) 0.883 kb
require_dependency 'application_controller'
require 'radiant-stereotype-extension/version'
class StereotypeExtension < Radiant::Extension
version Radiant::Stereotype::Extension::VERSION
description "Define templates for Pages' children in Radiant CMS."
url "http://blog.aissac.ro/radiant/stereotype-extension/"
def activate
throw "Custom Fields Extension must be loaded before Stereotype Extension" unless defined?(CustomFieldsExtension)
Page.send :include, Stereotype::PageExtensions
Admin::PagesController.class_eval do
include Stereotype::PagesControllerExtensions
end
admin.page.edit.add :layout_row, "admin/stereotype"
admin.page.index.add :sitemap_head, 'admin/stereotype_th', :after => "remove_child_column"
admin.page.index.add :node, 'admin/stereotype_td', :after => "remove_child_column"
end
def deactivate
end
end
Jump to Line
Something went wrong with that request. Please try again.