# AafSearchExtension adds acts_as_ferret fields for page title and page content to the # Page class. SearchTags defines radius tags for building the search form. SearchPage # defines radius tags for building the Search Results page and overrides the Page.render # method to perform the search and make its results available. class AafSearchExtension < Radiant::Extension version "1.0" description "Search Pages with Acts As Ferret" url "http://barnard-engineering.com/svn/trunk/radiant-extensions/aaf_search/" def activate Page.send(:include, ActsAsFerret::PageExtensions) PagePart.send(:include, ActsAsFerret::PagePartExtensions) admin.page.edit.add :extended_metadata, "search_toggle" Page.send(:include, SearchTags) SearchPage end def deactivate end end