Skip to content

Instantly share code, notes, and snippets.

@jbickar
Last active August 29, 2015 14:23
Show Gist options
  • Save jbickar/0be651562a77215c97dc to your computer and use it in GitHub Desktop.
Save jbickar/0be651562a77215c97dc to your computer and use it in GitHub Desktop.
DS Search Results

Overriding Search Results with Display Suite

Bug with ds-7.x-2.10: https://www.drupal.org/node/2490932

  1. Enable ds_ui and ds_search
  2. Go to admin/config/search/settings and enable Display Suite Search (under "Active Search Modules") and set it as the "default search module". Disable "Node" under "Active Search Modules".
  3. Go to admin/structure/ds/list/search and configure your desired DS Search settings. Choose the "Search result highlighting input" View mode (this is the default)
  4. Go to admin/structure/types/manage/<nodetype>/display and click the "Custom display settings" vertical tab. Check the box for "Search result highlighting input"
  5. Go to admin/structure/types/manage/<nodetype>/display/search_result and click the "Layout for in search result" vertical tab. Choose "One column" from "Select a layout" and click Save.
  6. Still on admin/structure/types/manage/<nodetype>/display/search_result, choose the fields that you want to display in the search result (e.g., "Title" and "Search snippet" only). Click Save.
  7. View your search results at search/content
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment