Skip to content

Commit

Permalink
cleanup and update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
cristi committed Oct 15, 2009
1 parent 1593aa2 commit 08cfd9e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 14 deletions.
16 changes: 12 additions & 4 deletions README.md
Expand Up @@ -20,16 +20,24 @@ Instalation

Stereotype Extension has one dependency, the [Radiant Custom Fields Extension][rcfe].

git submodule add git://github.com/Aissac/radiant-custom-fields-extension.git vendor/extensions/custom_fields
git clone git://github.com/Aissac/radiant-custom-fields-extension.git vendor/extensions/custom_fields

Because Stereotype Extension keeps the settings in the `Radiant::Config` table it is highly recommended to install the [Settings Extension][rse]

git submodule add git://github.com/Squeegy/radiant-settings.git vendor/extensions/settings
git clone git://github.com/Squeegy/radiant-settings.git vendor/extensions/settings

Finally, install the [Stereotype Extension][rste]

git submodule add git://github.com/Aissac/radiant-stereotype-extension.git vendor/extensions/stereotype

git clone git://github.com/Aissac/radiant-stereotype-extension.git vendor/extensions/stereotype

###Note

The git branches hold stable versions of the extension for older version of Radiant CMS. To checkout one of these branches:

git clone git://github.com/Aissac/radiant-stereotype-extension.git vendor/extensions/stereotype
cd vendor/extensions/stereotype
git checkout -b <branch-name> origin/<remote-branch-name>

Configuration
---

Expand Down
11 changes: 1 addition & 10 deletions stereotype_extension.rb
@@ -1,17 +1,10 @@
# Uncomment this if you reference any of your controllers in activate
require_dependency 'application_controller'

class StereotypeExtension < Radiant::Extension
version "1.0"
description "Define templates for Pages' children in Radiant CMS."
url "http://blog.aissac.ro/radiant/stereotype-extension/"

# 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
Expand All @@ -25,7 +18,5 @@ def activate
end

def deactivate
# admin.tabs.remove "Stereotype"
end

end

0 comments on commit 08cfd9e

Please sign in to comment.