Hi,
I have created a content type that I do not want to display author and date. So I unchecked the box. And it works, now when I do a search in the search results I see the author and date, how can I have the search results not display this information on the results page?
Thanks.
Follow me on: Twitter: http://twitter.com/1rubytweets Facebook: http://www.facebook.com/profile.php?id=1058306793 Join me on: Yahoo: jruby6767 Msn: jruby@charter.net
The list can probably tell us a better way, but what I did was hide the div that had the name/date with css.
Very Respectfully, Cesar Covarrubias cesar@consultcdc.com
On 8/17/11 7:30 PM, Jim Ruby wrote:
Hi,
I have created a content type that I do not want to display author and date. So I unchecked the box. And it works, now when I do a search in the search results I see the author and date, how can I have the search results not display this information on the results page?
Thanks.
Follow me on: Twitter: http://twitter.com/1rubytweets Facebook: http://www.facebook.com/profile.php?id=1058306793 Join me on: Yahoo: jruby6767 Msn: jruby@charter.net
A better solution would be to address these in the templates directly. See modules/search/search-result.tpl.php and template_preprocess_search_result() in modules/search/search.pages.inc
Copy the tpl into your theme directory and make changes there or use MYTHEME_preprocess_search_result() in your theme's template.php file. After adding the file or the function, clear cache so that the theme registry will utilize these. See http://drupal.org/node/223430 for more information.
Carl Wiedemann Website design and development consulting carl.wiedemann@gmail.com | skype: c4rlww