Announcement

Collapse
No announcement yet.

Four Columns in Search Results

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

    Four Columns in Search Results

    Hi,

    Just wondering if it is possible within the search results page to have the results over four columns? What I mean is to have the full set of results in each cell over 4 column.

    Results 1 | Results 2 | Results 3 | Results 4
    Results 5 | Results 6 | Results 7

    Hope that makes sense,

    Thanks,
    VolFish

    #2
    I've a patch that does that. See www.drillpine.biz and follow the link to Actinic Add-ons. The patch was done in the V5 days but should work with V6 as the search scripts have not changed much.

    Norman
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #3
      I've just rejigged that patch to make a more flexible V6 version. See www.drillpine.biz and follow the link to Actinic Add-ons.

      Norman
      Norman - www.drillpine.biz
      Edinburgh, U K / Bitez, Turkey

      Comment


        #4
        Hi Norman

        do you by any chance have anything to lay the products out in a different order for example when i lay them out in columns it goes

        1 2 3
        4 5 6
        7 8 9

        What i would like is for the products to run down then start the next column like

        1 4 7
        2 5 8
        3 6 9

        Dont know if this is possible i asked once before,

        thanks
        http://www.phoenixdirectuk.co.uk
        http://www.inkdeals.co.uk
        http://www.computerfairdeals.co.uk
        http://www.computerfairink.co.uk
        http://www.bestprceink.co.uk

        Comment


          #5
          Well everythings possible, but that would be so tricky to implement (and of such limited use) that I'll leave it for others to do.

          Norman
          Norman - www.drillpine.biz
          Edinburgh, U K / Bitez, Turkey

          Comment


            #6
            Ahh, thanks for that Norman, I thought I had seen it somewhere before, I did find a solution by modifying Act_ResultsTemplate.html slightly with the following:

            ---------------------------------------
            <TD ALIGN=LEFT><table width="100%"><tr>
            <SCRIPT language="JAVASCRIPT">
            <!--
            var counter = 0;
            //-->
            </SCRIPT>
            <Actinic:SEARCH_RESULTS>
            <SCRIPT language="JAVASCRIPT">
            <!--
            counter = counter + 1;

            if (counter == 5)
            {
            document.writeln("</TR><TR>");
            counter = 0;
            }
            //-->
            </SCRIPT>


            <td width="25%" align="center" valign="bottom">
            <Actinic:S_LINK/><Actinic:S_IMAGE/></a><br><Actinic:S_ITEM/>.
            <Actinic:S_LINK/><B><Actinic:S_PNAME/></B></A> <Actinic:S_SNAME/><br><b><Actinic:S_PRICE/></b><BR>
            <Actinic:S_DESCR/><BR>
            <Actinic:S_PROP/><P>
            </Actinic:SEARCH_RESULTS>
            </td>
            </tr></table></TD>

            ---------------------------------------------

            Your method certainly does look "cleaner" and tested so I think I will use that method,

            Thanks again,
            VolFish

            Comment


              #7
              That method will work as well although it generates mildly invalid HTML (especially if you set the column count back to 1).

              To make it abit more general purpose you might want to create a customvar called SEARCHCOLS and set it to the number of columns you want.

              Then change the line

              if (counter == 5)

              to

              if (counter >= CUSTOMVAR:SEARCHCOLS)
              Norman - www.drillpine.biz
              Edinburgh, U K / Bitez, Turkey

              Comment


                #8
                Hi there,

                Does anyone know whether the above method holds good for V7 too?

                If it does - and taking it one step further - do you think it will be possible to then format the results to look like one of our section lists i.e. example ? (the sites not live, still in development).

                If it could, that would be excellent

                Graham

                Comment


                  #9
                  It should work with V7. Try it and see. Just back up any files you change first.

                  However, you should add the lines
                  Code:
                  <Actinic:XMLTEMPLATE NAME="ImageLine">
                  		  	<IMG SRC="NETQUOTEVAR:THUMBNAIL" NETQUOTEVAR:THUMBNAILSIZE>
                  		  </Actinic:XMLTEMPLATE>
                  Into the patched V6 template as these are new in V7. E.g.
                  Code:
                  <!-- V7 Results HTML begin -->
                  <!-- Add Results Page header HTML here -->
                  
                  
                  <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=10 WIDTH="CUSTOMVAR:ACTSTDWIDTH" ALIGN="CENTER">
                  	<TR>
                  		<TD colspan=CUSTOMVAR:SEARCHCOLS ALIGN=LEFT>
                  		  <B><Actinic:S_SUMMARY/></B><BR><Actinic:S_CONTINUE/>
                  		</TD>
                  	</TR>
                  	<TR>
                  	    <Actinic:SEARCH_RESULTS>
                  		<TD valign=top width=CUSTOMVAR:SEARCHCOLWIDTH ALIGN=LEFT>
                  		  <Actinic:S_ITEM/>.
                  		  <Actinic:XMLTEMPLATE NAME="ImageLine">
                  		  	<IMG SRC="NETQUOTEVAR:THUMBNAIL" NETQUOTEVAR:THUMBNAILSIZE>
                  		  </Actinic:XMLTEMPLATE>
                  		  <Actinic:S_LINK/><B><Actinic:S_PNAME/></B></A> <Actinic:S_SNAME/> <Actinic:S_PRICE/> <BR>
                  		  <Actinic:S_DESCR/><BR>
                  		  <Actinic:S_PROP/><P>
                  		</TD>
                              <Actinic:S_TABLEEND/>
                    	    </Actinic:SEARCH_RESULTS>
                  	</TR>
                  	<TR>
                  		<TD colspan=CUSTOMVAR:SEARCHCOLS ALIGN=LEFT>
                  		  <B><Actinic:S_SUMMARY/></B><BR><Actinic:S_CONTINUE/>
                  		</TD>
                  	</TR>
                  </TABLE>
                  <HR SIZE="1" ALIGN="CENTER" WIDTH="CUSTOMVAR:ACTSTDWIDTH">
                  NETQUOTEVAR:SEARCHBLOCK
                  
                  <!-- Add Results Page footer HTML here -->
                  <!-- V7 Results HTML end -->
                  As to the layout that's just a matter of moving things around within the above template.

                  Norman
                  Norman - www.drillpine.biz
                  Edinburgh, U K / Bitez, Turkey

                  Comment


                    #10
                    Norman, if you had a £ for every time someone's thanked you on this community, you'd now be another £ richer Thank you!

                    That worked an absolute treat, and the improvement to the look of the search results is fantastic.

                    Comment

                    Working...
                    X