Solved

Remove Fields From Search Results Page?

Posted on 2013-05-30
1
300 Views
Last Modified: 2013-06-19
(I'm using the OpenPublic distro)

I need to remove the Author, Date and Time fields from my search results page.

Best way?
0
Comment
Question by:sandshakimi
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 9

Accepted Solution

by:
scifikillr earned 500 total points
ID: 39207875
There is a 'search-results.tpl.php' file that can be overridden within the theme. Search your codebase for this file (templates are usually in /modules/system or /modules/node, but I would search all of '/modules' for it.)

If you override this tpl file, you can manipate it to your heart's content. That includes the post info.

It's also quite likely that the default search-results template is returning node results in teaser form. If this is the default search module you're using, you'll have to override this in the template (by manually printing the fields you want, or removing the post info from the array before you retrieve it)

As an alternative, you could simply create a view with an exposed search filter, and then modify the view to return the fields you want, vs the default teaser.

As an additional alternative, you could simply modify the node teaser display, if you're not using it anywhere else. That can be done by navigating to the content type in question, and clicking "Manage Display" tab, then modifying the 'teaser' perspective.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is for those that are having major problems with users upload files such as pictures to their profile. The solution is simple and has to do with correcting the directory paths. With some experimenting and testing i got it fixed. Note…
RTL (right to left) web applications aiming for audiences speaking languages like Hebrew or Arabic, are generally more complicated than the same applications aiming for audiences speaking Latin based languages. The main difference lies of course …
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question