Hello everyone
I'm using Finder since i first discovered autocomplete node finder. Really like it so far.
I use it to find album covers and therefore I need the node id for loading images from cck fields. I used something similar to this:
function remarkable_finder_autocomplete_suggestion($match, $element) {
$node = node_load($match->{$match->nid});
$result_html = theme('imagecache', 'finder_icon', $node->field_serie_design_banner[0]['filepath']);
$result_html .= check_plain($node->title);
$path = 'node/'. $node->nid;
$result = l($result_html, $path, array('html' => TRUE) );
return $result;
}
The Finder is configured to use a view which lists all nodes by title of type album in a simple list.
Somehow I got the imperssion, that after upgrading to version 1.7 the nid elemnt of the option element is empty. What did i do wrong?
Feel really dumb today, so please be kind ^^
Also it would be great to have some reference on the element and option objects. I had a look at both with the serielize function, but a up to date class api would be nice.
Thank you
Comments
Comment #1
danielb commentedThe information should all be there, afaik
or
Comment #2
danielb commentedWell it's different based on what you do. And it keeps changing from version to version as new features are added. Really the best way is to just debug it with dsm() and see what's there. It should be pretty obvious.
I don't know what you are refering to by serialize functions - settings should be unserialized upon loading, nor are there any classes to document. You can view the doxygen generated API for the latest version on the documentation page. The properties for finders and their elements come directly from the form that you fill out when setting one up - the form keys are the names of the properties. You can view the source of the form at /includes/finder.admin.inc It's not particularly well organised atm, I sort of just chuck stuff in there, one day it will need to be redesigned as the number of options is growing.
Comment #3
danielb commented