Keyword

Display specific Extra Fields in Search Results

  • O Sussat
  • O Sussat's Avatar Topic Author
  • Offline
  • New Member
More
13 years 8 months ago #92149 by O Sussat
Hi all

I'm looking for a definitive answer on how to go about displaying specific extra fields within search results.

You can display the values of all fields by inserting the following line into the relevant default_results.php file

 

<?php echo $result->extra_fields_search; ?>

 

But I need to know how to call the values of specific fields.

Can anybody help?

Many thanks

Oliver

Please Log in or Create an account to join the conversation.

  • Francisco Caivano Zori
  • Francisco Caivano Zori's Avatar
  • Offline
  • Junior Member
More
13 years 3 months ago #92150 by Francisco Caivano Zori
Replied by Francisco Caivano Zori on topic Display specific Extra Fields in Search Results
Hi, could you solve this?

 

im tryng to do the same.

Please Log in or Create an account to join the conversation.

More
13 years 2 months ago #92151 by Jock
Hi,

 

This is kind of related but not entirely the same ... does anyone know how you return $result->text; for extra fields? Basically I want my search results to have the snippet of text with the highlighted keywords for content that is in extra fields. Currently it is returning the matching item but not with the snippet.

 

Anyone know how to fix this?

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum