Posted by cpliakas on December 20, 2012 at 7:13pm
3 followers
| 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

Proposed search results page

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.
| Attachment | Size |
|---|---|
| commons-search-current.png | 51.56 KB |
| commons-search-proposed.png | 67.88 KB |
Comments
#1
Seems like a great enhancement!
#2
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:
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
#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
#5
Automatically closed -- issue fixed for 2 weeks with no activity.