Solved

Remove Fields From Search Results Page?

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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

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 …
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

759 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now