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
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