1

I want make a photo gallery with Drupal. I have a problem with showing article images (that shows in homepage in a div classed "field-image"), I want show this image is search page. After searching for something just title and text shows, how to show images there? Thanks a lot :) look at this shots: enter image description here enter image description here enter image description here enter image description here

11
  • Hello, Have you tried anything for the same? Nov 20, 2013 at 9:33
  • 1
    go to manage display and select the image preset for teaser display in select list.
    – Bala
    Nov 20, 2013 at 9:43
  • @Bala that affected homepage, not search page.
    – Ma3x
    Nov 20, 2013 at 9:56
  • 1
    @Ma3x it should affect all places where teasers are used. What display is used on your search results page?
    – Mołot
    Nov 20, 2013 at 10:34
  • 1
    @Mołot thanks man :) i use awesome screenshot plus and first post edited again.
    – Ma3x
    Nov 20, 2013 at 12:16

2 Answers 2

0

If you're using default core search, you can modify "Search result" display there.

3
  • Yes! I use defualt core search module, see at first post, screen shots :)
    – Ma3x
    Nov 20, 2013 at 11:49
  • 1
    Sorry for a bad first attempt :) If you don't want to write any code, the best option for you would be Display Suite integration with Core Search. Here is a screencast
    – m1r1k
    Nov 20, 2013 at 13:04
  • 1
    thanks all :) using Display Suite module i fixed the problem.
    – Ma3x
    Nov 20, 2013 at 15:27
0

You can override the search-result.tpl.php file and add some logic in your form pre-processing page (template.php), but all of this is quite a bit of work when you could rather just use the Display Suite Module.

  1. Install the module.
  2. Enable "Display Suite", "Display Suite Search" and "Display Suite UI".
  3. Enable "Display Suite Search" on the search settings page: /admin/config/search/settings
  4. Go to a searched term page: search/content/SEARCH_STRING
  5. You should now see a lot more info. As a final step, you can edit what is shown here by going to the settings page here: admin/structure/ds/list/search

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.