There is a setting in this module for 'Select data to display below each result.', whcih contains 'Content type' as an option.
In drupal 6 there was $variables['info']['type'] that was used for this but it doesn't exist in drupal 7.
All you have now is $variables['info']['module'] which would just have 'node' instead of the content type/bundle.
See #1517032: Update search-result.tpl.php code comments to reflect new $info_split default keys and http://api.drupal.org/api/drupal/modules!search!search.pages.inc/functio...
So this module either needs to get rid of that option, or it needs to add the type to the info array if it can be found, for example from $variables['result']['type'], if it is a node result.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | custom_search-type_result_info-1542858-2.patch | 711 bytes | rooby |
| #1 | custom_search-type_result_info-1542858-1.patch | 738 bytes | rooby |
Comments
Comment #1
rooby commentedHere is a patch that will apply cleanly over the top of the patch in #1542846-1: Redundant code in custom_search_preprocess_search_result()
Comment #2
rooby commentedHere is a version of the same patch that applies to a clean version of custom_search.
Comment #3
jdanthinne commentedThanks. Pushed to DEV.
Btw, this module needs a co-maintainer, if interested…
Comment #4
rooby commentedI'd be happy to do some issue queue maintenance from time to time - reviewing & committing patches etc.
But I wouldn't be able to dedicate large amounts of time regularly.
So if that suits you I'd be happy to.
Comment #5
jdanthinne commentedOk then, you're now a co-maintainer. Thanks!