By DarrinRich on
Just finished our first drupal site. I noticed when doing searches the at the bottom of each result it shows some stuff like the username, date, comments etc.. Example. How do I disable that from showing up?
Thanks
Just finished our first drupal site. I noticed when doing searches the at the bottom of each result it shows some stuff like the username, date, comments etc.. Example. How do I disable that from showing up?
Thanks
Comments
override the theme function
You need to override this theme function:
http://api.drupal.org/api/5/function/theme_search_item
Here's the customization I'm using in my theme's template.php file to only show the name and date for forum and blog posts:
---
Work: BioRAFT
Im a newbie at this. I
Im a newbie at this. I looked in my theme folder and dont see a template.php file. Where would I put this at?
Thanks for the help.
create it if needed
I'm assuming you are using a phptemplate-based theme. If so, you can just create a new file called template.php in your the folder containing the theme you're using. For example, if you are using Garland, the file already exsits at themes/garland/template.php
Since I assume you have a custom theme ("mytheme"), it should be located somewhere like sites/all/themes/mytheme/template.php
see also: http://drupal.org/node/55126
---
Work: BioRAFT
Thanks for explaining that.
Thanks for explaining that. Applying your customization code, it worked just fine. Thanks again for your help. Much appreciated. :)