Gossamer Forum
Quote Reply
search results object
Is the object ,$self->{last_hits}, what I need to gather the values from a search result for a field in a db table?

This would be for making a plugin?



thanks,

dk henderson
Quote Reply
Re: [dalehend] search results object In reply to
Yes,
This should be a plugin

Cheers,

Cheers,

Dat

Programming and creating plugins and templates
Blog
Quote Reply
Re: [dalehend] search results object In reply to
$self->{last_hits} is not a hook in DBMan SQL, have a look at the link below for more information.

http://www.gossamer-threads.com/...orum.cgi?post=165965

TheStone.

B.
Quote Reply
Re: [TheStone] search results object In reply to
Should not $self->{last_hits} be accessible via a plugin?

That is what I would like to know.



dale
Quote Reply
Re: [dalehend] search results object In reply to
I'm quite not sure what you want to do, but you can use <%%> tags below inside loop within search_results.html intead of creating a plugin.

<%row_num%> - a counter for what row is being looped, starts at 1.
<%first%> - boolean that is true if this is the first row, false otherwise.
<%last%> - boolean that is true if this is the last row, false otherwise.
<%inner%> - boolean that is true if this is not first and not last.
<%even%> - boolean is true if row_num is even.
<%odd%> - boolean is true if row_num is odd

Also, <%hits%> is the number of result entries.

TheStone.

B.