Keyword

How to get k2 extra field to display search result

More
12 years 4 months ago - 12 years 4 months ago #66061 by odd
Hello Everybody,

i have question.
How to get k2 extra field to display search result page.

I used JA Filter for K2 Extrafields search.
In display result page i need to get extra fields to show.

page (com_search/search/search_result.php)

i try this but doesn't work.

<!-- Call to prepare extra fields -->
<?php
//convertArray to use ids as key
$extrafields = array();
foreach($this->item->extra_fields as $item)
{
$extrafields[$item->id] = $item->value;
}
?>

<?php echo $extrafields[5];?>

how to get it.


Thank you
Odd

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

More
11 years 5 months ago #66062 by leequang
I meet this case.
install jak2 fillter plugin, find to component/search/default_results.php

echo $result->extra_fields_search ;

ok !

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


Powered by Kunena Forum