Zikula: A Flexible Open Source Content Management System
home | forum | contact us

Dizkus

Bottom
'Auto' Search Function
  • Posted: 08.03.2006, 07:24
     
    mangus580
    rank:
    Freshman Freshman
    registered:
     December 2004
    Status:
    offline
    last visit:
    15.01.08
    Posts:
    29
    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=
  • Posted: 08.03.2006, 12:41
     
    Simon
    rank:
    Steering Committee Steering Committee
    registered:
     December 2002
    Status:
    offline
    last visit:
    09.11.08
    Posts:
    13413
    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
  • Posted: 08.03.2006, 18:03
     
    mangus580
    rank:
    Freshman Freshman
    registered:
     December 2004
    Status:
    offline
    last visit:
    15.01.08
    Posts:
    29
    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
  • Posted: 09.03.2006, 00:04
     
    Simon
    rank:
    Steering Committee Steering Committee
    registered:
     December 2002
    Status:
    offline
    last visit:
    09.11.08
    Posts:
    13413
    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

Main Menu

Extensions Database

Documentation

Development

Login

Donate to Zikula