Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 20 lines (15 sloc) 0.713 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
# Uncomment this if you reference any of your controllers in activate
require_dependency 'application_controller'

class CustomFieldsExtension < Radiant::Extension
  version "0.9" # this version is compatible with Radiant 0.9
  description "An extension that lets you add custom fields to a Radiant page."
  url "http://blog.aissac.ro/radiant/custom-fields-extension/"
  
  def activate
    Page.send(:include, CustomFields::PageExtensions)
    Page.send(:include, CustomFields::CustomFieldsTags)
    
    admin.page.edit.add :main, "admin/custom_fields/show_custom_fields", :before => "edit_header"
    admin.page.edit.add :popups, "admin/custom_fields/custom_fields_popup"
  end
  
  def deactivate
  end
end
Something went wrong with that request. Please try again.