Download & Extend

Implement rich snippets for a better search experience

Project:Drupal Commons
Version:7.x-3.x-dev
Component:Search
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

If would be great if Commons could display results as rich snippets similar to the major search engines. This feature request is best highlighted by screenshots.

Current search results page

commons-search-current.png

Proposed search results page

commons-search-proposed.png

Possible solution

This could be achieved by leveraging the Schema.org and Rich Snippets modules. The content types would have to be mapped to the appropriate schema, and and configs would have to be exported and rolled into the search features.

AttachmentSize
commons-search-current.png51.56 KB
commons-search-proposed.png67.88 KB

Comments

#1

Seems like a great enhancement!

#2

Status:active» needs review

The attached patches are a first crack at this. There are a lot of moving pats here, so I am not sure how we want to attack the dependencies. The following components are modified and listed in the order of the patches:

  • Core Commons make file
  • Commons Events feature
  • Commons Search feature
  • Commons Origins theme

I had a little bit of trouble styling the search result links as the module overrides the theme's CSS for some reason, and I only touched the .scss files to reduce extra noise in the theme's patch.

Thanks,
Chris

AttachmentSize
commons-rich-snippets-1871544-2.patch 552 bytes
commons-events-rich-snippets-1871544-2.patch 3.1 KB
commons-search-rich-snippets-1871544-2.patch 371 bytes
commons-origins-rich-snippets-1871544-2.patch 445 bytes

#3

Looks good to me - Let's get functional testing in dev.
I witheld the theme patches since we're under active theme development that includes the search pages.

http://drupalcode.org/project/commons_search.git/commit/3b1c62a
http://drupalcode.org/project/commons_events.git/commit/2b20ab7
http://drupalcode.org/project/commons.git/commit/fcbc775

Thanks, Chris!

#4

Status:needs review» fixed

#5

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

nobody click here