Topic: 'Auto' Search Function
mangus580
avatar
Freshman
Freshman
Posts: 29

Posted:
8.Mar 2006 - 07:24

Ok, lets see if I can explain this. I am trying to build a setup that will give 'definitions' and related links for keywords. Frankly I am lazy, and I dont feel like keying all my related links in. I want to build a seach using code, that will do it for me, and return a list of related links. Basically, the PN search function, taking a keyword from a variable that I give it, and returning the results in a standalone HTML page, or a page that I format.

I am sure that this can be done, and I can probably do it. I just need some direction as where to start. I am not quite good enough yet, to just read through the code, to figure out where I might want to start. I suppose worst case, I could always just build the search from scratch, but it would be so much easier to use the existing code and copy it.

What I need...
  • Variable name the search function uses, so I can pass it direct, and not through a form
  • the output template/php so I can copy, and modify it
  • the actual search function to copy/use


this is related to my other topic this week, which I have about finished. http://forums.postnu…&t=47507&highlight=
Simon
online
avatar
Steering Committee
Steering Committee
Posts: 13427

Posted:
8.Mar 2006 - 12:41

I'd write a custom hook module for this with its own search function. This way you can cache the results, as running several automatic searches on every pageload of an article would be a performance killer.

--
Regards,
Simon

itbegins.co.uk - Zikula Consulting

Please read the Support Guide
mangus580
avatar
Freshman
Freshman
Posts: 29

Posted:
8.Mar 2006 - 18:03

Good idea....

I am running this basically as a function of autolinks.

Problem is I am nowhere near advanced enough to do that I dont think icon_frown
Simon
online
avatar
Steering Committee
Steering Committee
Posts: 13427

Posted:
9.Mar 2006 - 00:04

I'm sure you could get someone to write a module for you, but it wouldn't be cheap...

--
Regards,
Simon

itbegins.co.uk - Zikula Consulting

Please read the Support Guide