Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
24 lines (19 sloc) 883 Bytes
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 ""
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 :layout_row, "admin/stereotype" :sitemap_head, 'admin/stereotype_th', :after => "remove_child_column" :node, 'admin/stereotype_td', :after => "remove_child_column"
def deactivate
Jump to Line
Something went wrong with that request. Please try again.