Contemplate - what a module! Thanks so much to all those who've contributed to it - how did we ever live/work/code without it!

However ... I frequently use content templates to expand the horizons of displayed nodes, adding in, for example, elements of the author's profile or creative use of CCK field content. This seems to mean that a search index update overlooks the true templated node content that is displayed to the user and search results do not retrieve a full set of content.

So, I'd like to request that a further case is added to the switch in the contemplate_nodeapi function where by the templated content is returned for search indexing. I'm not a sophisticated php coder, so here's my submission. it did work as a beautiful solution in my development site, but that doesn't necessarily mean that it's a good solution.

    case 'update index':
      if ($template = contemplate_get_template($node->type)) {
        return contemplate_eval($template->body, $node);
      }

Patch attached.

CommentFileSizeAuthor
contemplate.patch358 bytesjoe-b

Comments

jjeff’s picture

Status: Needs review » Fixed

Oop. Forgot to site this issue, but this is fixed in the latest commit:

http://drupal.org/cvs?commit=61956

Thanks!

Anonymous’s picture

Status: Fixed » Closed (fixed)