Solved

Remove Fields From Search Results Page?

Posted on 2013-05-30
1
301 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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

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 …
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

734 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