Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
32 lines (25 sloc) 1.07 KB
# Uncomment this if you reference any of your controllers in activate
require_dependency 'application'
class StereotypeExtension < Radiant::Extension
version "1.0"
description "Define templates for Pages' children in Radiant CMS."
url ""
# define_routes do |map|
# map.namespace :admin, :member => { :remove => :get } do |admin|
# admin.resources :stereotype
# end
# end
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 :parts_bottom, "admin/stereotype", :after => "edit_layout_and_type" :sitemap_head, 'admin/stereotype_th', :after => "remove_child_column" :node, 'admin/stereotype_td', :after => "remove_child_column"
def deactivate
# admin.tabs.remove "Stereotype"
Jump to Line
Something went wrong with that request. Please try again.