3063 Posts in 864 Topics by 646 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 984 Views |
-
search form result, display image

23 February 2010 at 8:46am
hello
i have product page with
has_one {
'Img' => 'Image'
}function results($data, $form){
if($form->getSearchQuery() == NULL) {
$data = array(
'Results' => '',
'Query' => '',
'Title' => 'Your results'
);
} else {$data = array(
'Results' => $form->getResults(),
'Query' => $form->getSearchQuery(),
'Title' => 'Your results'
);
}$form = new SearchForm($this, "SearchForm", $fields, $actions);
$form->classesToSearch(array('SiteTree'));
return $form;
}but standard search form function is only searching in the SiteTree so i cant display product image
how to modify this search form function to display images ?
| 984 Views | ||
|
Page:
1
|
Go to Top |

