Announcement

Collapse
No announcement yet.

custom search results

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    custom search results

    i'm looking for an elegant way to have a second, seperate search results page.

    normal searches all go through a standard page, which allready has styles and such associated. i dont want to break that.

    i want to duplicate all things necessary (with the minnimum of duplication of course) to have a different looking search. not really a custom search, but a different set of /pl alltogether.

    i suppose my question is, where does the ss000001.pl get its templates from once its uploaded!

    anyone know?

    #2
    results.html perhaps.
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #3
      can i specify this template when i search?

      like 0001.pl?template=template.htm

      ?

      Comment


        #4
        Probably only by customising the Perl.

        You'll find this in SeachScript.pl

        my $sFilename = $sPath . "results.html";
        Last edited by NormanRouxel; 15-May-2006, 04:59 PM. Reason: Update
        Norman - www.drillpine.biz
        Edinburgh, U K / Bitez, Turkey

        Comment


          #5
          and i did just that

          alt_ss00001.pl

          alt_results.html


          and edit the alt_.pl "results.html" to alt_results.html

          Comment


            #6
            No need for a custom Perl script. Try using 0001.pl?template=template.htm with a patched SearchScript.pl

            Code:
            my $altresults = (defined $::g_InputHash{'template'}) ? $::g_InputHash{'template'} : 'results.html';
            my $sFilename = $sPath . $altresults;
            Norman - www.drillpine.biz
            Edinburgh, U K / Bitez, Turkey

            Comment

            Working...
            X