Announcement

Collapse
No announcement yet.

Search page links?

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

    Search page links?

    Hi,

    I have been trying to edit the link classes on the search results page for my site http://gfc.alphaclient.co.uk/

    I cannot work out where to edit the page results numbers, they currently display a white link when hovered.

    Try searching for "Price" on my site and you will see what i mean.

    I have applied the correct link class to the product links but cant seem to sort out the page results links...

    Here is my code:

    Code:
    <form method="get" action="<actinic:variable name="OnlineScriptURL" value="Search Script URL" />">
    <input type="hidden" name="RANDOM" value="<actinic:variable name='Random'/>" />
    
    <actinic:block if="%3cactinic%3avariable%20name%3d%22IsHostMode%22%20%2f%3e">
       <!-- Hidden field when in trial mode -->
       <input type="hidden" name="SHOP" value="<Actinic:Variable Name="HiddenFields"/>" />
    </actinic:block>
    
    <table border="0" cellpadding="10" width="<actinic:variable name="ACTSTDWIDTH" />" align="center">
       <tr>
          <td>
             <p><b><Actinic:Variable Name="SearchResultSummary"/></b></p><br />
             <p><a class="underline-green"<Actinic:Variable Name="SearchResultContinue"/></a></p>
          </td>
       </tr>
       <tr>
          <td>
             <p><actinic:variable name="SearchResultsList" /></p>
          </td>
       </tr>
       <tr>
          <td>
             <p><b><Actinic:Variable Name="SearchResultSummary"/></b><br />
             <Actinic:Variable Name="SearchResultContinue"/>
             </p>
          </td>
        </tr>
    </table>
    
    <hr size="1" />
    
    <input type="hidden" name="PAGE" value="SEARCH" />
    
    <table border="0" cellspacing="0" cellpadding="0" width="<actinic:variable name="ACTSTDWIDTH" />" >
       <tr>
          <td colspan="2" valign="top">
          <p>
             <Actinic:Variable Name="SearchPrompt"/> <Actinic:Variable Name="RetailOnlyWarning"/>
             <br /><br />
          </p>
          </td>
       </tr>
       <tr>
          <td valign="top" align="center">
             <table border="0" cellspacing="0" cellpadding="3">
                <tr>
                   <td valign="top">
                   <p>
                      <b><Actinic:Variable Name="SearchString"/></b><br />
                   
                      <input type="text" name="SS" size="40" />
                      <br />
                      <Actinic:Variable Name="SearchCombine"/>
                      <input type="radio" name="TB" checked="checked" value="A" />
                      <Actinic:Variable Name="SearchAndPrompt"/>
                      <input type="radio" name="TB" value="O" />
                      <Actinic:Variable Name="SearchOrPrompt"/>&nbsp;<Actinic:Variable Name="SearchCombineText2"/>
                      </p>
                      <script language="javascript" type="text/javascript">
                      <!--
                         for (nIndex = 0; nIndex < document.forms.length; nIndex++)
                          {
                           if (document.forms[nIndex] && document.forms[nIndex].SS)
                             {
                             document.forms[nIndex].SS.focus();
                             }
                          }
                      // -->
                      </script>
                   </td>
                  <td valign="top">
                  <p>
                      <actinic:block if="%3cactinic%3avariable%20name%3d%22PriceSearchIsAllowed%22%20%2f%3e">    
                        <b><Actinic:Variable Name="SearchPriceRangeLabel"/></b>
                        <br />
                        <actinic:variable name="SearchPriceBandList" />
                     </actinic:block>
                  </p>
                  </td>
                </tr>
                <actinic:variable name="SearchablePropertyList" />
                <actinic:block if="%3cactinic%3avariable%20name%3d%22IsSearchablePropertiesCombinedWithAnd%22%20%2f%3e" />
                   <input type="hidden" name="GB" value="A" />
                </actinic:block>
                <actinic:block if="%3cactinic%3avariable%20name%3d%22IsSearchablePropertiesCombinedWithOr%22%20%2f%3e" />
                   <input type="hidden" name="GB" value="O" />
                </actinic:block>
                <actinic:block if="%3cactinic%3avariable%20name%3d%22SearchBySectionsUsed%22%20%2f%3e" />
                   <tr>
                      <td colspan="2" valign="bottom"> <p><b><Actinic:Variable Name="SearchControlLabel"/></b><br />
                         <select name="SX">
    								<actinic:block if="%3cactinic%3avariable%20name%3d%22SetupSearchAllSections%22%20%2f%3e%20%3d%3d%20False">
    									<option value="0"> </option>
    								</actinic:block>
                            <actinic:variable name="SearchSectionList" />
                         </select>
                         </p>
                     </td>
                  </tr>
               </actinic:block>
               <tr>
                  <td colspan="2"valign="bottom">
                  <p>
                     <input type="submit" name="ACTION" value="<Actinic:Variable Name="SearchLabel"/>" />
                  </p>
                  </td>
               </tr>
            </table>
          </td>
       </tr>
    </table>
             <!-- alert("<Actinic:Variable Name="UnregCustomersNotAllowedMessage"/>");
             return false; -->
    
    </form>
    Any help on this issue would be greatly appriciated. Im aiming to get this site finished today

    #2
    Hi,

    The link for the page results numbers is generated in the SearchScript.pl script.

    You should replace:

    Code:
    <a class="underline-green"<Actinic:Variableame="SearchResultContinue"/></a>
    in your layout with:

    Code:
    <Actinic:Variable Name="SearchResultContinue"/>
    Then locate the 'SearchScript.pl' file in your site folder and open it with a text editor such as notepad. Search for:

    Code:
    my $sLinkFormat = '<A HREF="%s">';
    and add you class into this link so it will look something like:

    Code:
    my $sLinkFormat = '<A class="underline-green" HREF="%s">';
    Close and save the file and update your site.

    If you get any errors from doing this you can restore the file from 'c:\program files\Actinic v8\Original'.
    ********************
    Tracey
    SellerDeck

    Comment


      #3
      Worked a treat thankyou

      I wouldn't of been able to figure that out without your help, much appriciated!

      Comment

      Working...
      X