Hi All,
I am new to LinksSQL but I already love it. Been programming in PERL for a while but on this project decided to buy instead of build and I have to say I am not sorry.
I am allowing multiple listings of the same URL in different categories but I don't want a matching keyword search to report that URL more than once. I am familiar with modifying the directory using global subs but think I may need a plugin for this one.
My initial thought was to create a search_results plugin that would take the output and for each link do something like this with a %seen variable:
defined $seen{URL} ? ($seen{URL} += 1) : ($seen{URL} = 1);
After this command if the value is >1 then just move on, dont print results. The reason for incrementing the value is so that I can adjust links_hits accordingly before printing results.
Does this sound like the best way to do this? I looked into link_results_loop in search_results.html but I don't think I can do everything I want there. Any feedback is appreciated.
Jason
I am new to LinksSQL but I already love it. Been programming in PERL for a while but on this project decided to buy instead of build and I have to say I am not sorry.
I am allowing multiple listings of the same URL in different categories but I don't want a matching keyword search to report that URL more than once. I am familiar with modifying the directory using global subs but think I may need a plugin for this one.
My initial thought was to create a search_results plugin that would take the output and for each link do something like this with a %seen variable:
defined $seen{URL} ? ($seen{URL} += 1) : ($seen{URL} = 1);
After this command if the value is >1 then just move on, dont print results. The reason for incrementing the value is so that I can adjust links_hits accordingly before printing results.
Does this sound like the best way to do this? I looked into link_results_loop in search_results.html but I don't think I can do everything I want there. Any feedback is appreciated.
Jason