Thanks for the assist!

For future reference here's how I changed my code to make this work,  
maybe there is a still cleaner way:

=== /catalog_extension.rb SNIPPET ===
[... SNIP ...]
   def activate
     admin.tabs.add "Catalog", "/admin/catalog", :after =>  
"Pages", :visibility => [:all]

     CatalogPage

     require_dependency 'search_extension'

     # SearchPage.send :include, CatalogSearchExtension
     CatalogSearchExtension.extend_search
   end
[... SNIP ...]
=== end ===

=== /lib/catalog_search_extension.rb SNIPPET ===
module CatalogSearchExtension
   def self.extend_search
     SearchPage.class_eval do
       # Custom tags and other modifications
       [... SNIP ...]

       # Customized render method that also searches products
       def render
         [... SNIP ...]
       end
     end
   end
end
=== end ===

James Thompson
IT Director & Web Programmer
Stewart & Associates, Inc.
550 West Kentucky Street
Louisville, KY 40203
(502) 583.5502
[EMAIL PROTECTED]
http://www.stewartaa.com/


_______________________________________________
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to