From: Chris W. <ch...@cw...> - 2005-04-14 21:18:09
|
* Ken Youens-Clark (ky...@gm...) [050414 16:27]: > ... > And I'm up to the "Translate searching tasks to common" section. I > made the changes to move to the "CommonSearch" as defined in this > section. When I restart my web server, I see this following message: >... > No template found in 'c_search_form_template' key. This template is > mandatory > for the task to function. > > Even though my "conf/action.ini" has the following: > > [book] > class = OpenInteract2::Action::Book > task_default = search_form > is_secure = no > c_object_type = book > c_search_form_template = book::search_form > c_search_results_template = book::search_results > c_search_fields_like = title > c_search_results_order = title > > And the template does exist. (FWIW, everything in the tutorial was > working perfectly up to this point.) It's probably that you're using an earlier version of the configuration. When you upgrade your package the action configuration is copied to, in your case: $WEBSITE_DIR/conf/book/action.ini If that file already exists and the files are different, we copy the new one to: $WEBSITE_DIR/conf/book/updates/action.ini-x.xx So see if you've got any updates there and if so, copy the latest over the working configuration and see what happens. Yeah, we should definitely stress that in the tutorial :-) I'm glad you brought this up because I'm now thinking that we might want to make package configuration overwriting an option for people who never change them from the default. Salve, what do you think? Chris -- Chris Winters (http://www.cwinters.com) Building enterprise-capable snack solutions since 1988 |