Announcement

Collapse
No announcement yet.

Searching Custom Properties

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

    Searching Custom Properties

    Hi,

    I've been using the advanced user guide to try to make my custom properties fields such as ISBN searchable.

    All going well with customising the "Listbox with Multiple Selection" bit but when it showed up on the search page the table had gone double width.

    That being the first problem I've since tried to fix this only to find that I've lost the code that inserted the Custom Search Properties into the search page and can't find a way to get them back.

    I've already got the basic details in the Settings, Search Settings, Searchable Properties Section. It's just that the resulting boxes are not showing in the Search page!

    Any help would be appreciated.

    Cheers



    David

    #2
    You can revert a layout to it's original by going to Design > Library > Layouts > expand a group and right click on layout and revert to factory settings.

    I'm not sure what bit of code you're using I don't have the AUG in front of me at the moment, but if you post the problem code (where it's going double width?) it might be easier to see what the problem is.
    Peblaco

    Comment


      #3
      Presumably you were making these changes in a new (copy) search layout. Have you checked to ensure the layout selected is that new layout?
      Bill
      www.egyptianwonders.co.uk
      Text directoryWorldwide Actinic(TM) shops
      BC Ness Solutions Support services, custom software
      Registered Microsoft™ Partner (ISV)
      VoIP UK: 0131 208 0605
      Located: Alexandria, EGYPT

      Comment


        #4
        Originally posted by peblaco
        You can revert a layout to it's original by going to Design > Library > Layouts > expand a group and right click on layout and revert to factory settings.

        I'm not sure what bit of code you're using I don't have the AUG in front of me at the moment, but if you post the problem code (where it's going double width?) it might be easier to see what the problem is.
        Hi, thanks for your help. Unfortunately I can't send the code because of deleting the relevant section of code. Basically I need to reset the search page bulk area code but I mistakenly didn't keep a copy.

        I need to reinclude whatever code is necessary to show any custom searchable properties within the bulk area.

        Any ideas?

        Comment


          #5
          Do you mean revert to Actinic default of that page like I said above? (Design menu > Library > Layouts > Web page inner layout > Search page bulk area - right click and revert to factory).

          Then you can try the AUG instructions again and paste the code if you get stuck.
          Peblaco

          Comment


            #6
            I've found Web Page Inner Layout|Search Page Bulk Area and reset to factory settings but to no avail.

            Comment


              #7
              Originally posted by peblaco
              Do you mean revert to Actinic default of that page like I said above? (Design menu > Library > Layouts > Web page inner layout > Search page bulk area - right click and revert to factory).

              Then you can try the AUG instructions again and paste the code if you get stuck.
              No luck with that option. I've tried twice.

              I think it's more likely that I've deleted the code within the search page somehow when I've been trying to sort out the page width problem after implementing the additional search fields as per the aug.

              I just simply don;t know which variables or bits of code need to be re-added.

              This is the bulk area code, can you see anything obvious that I'm missing?

              Thanks



              David

              <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>

              <input type="hidden" name="PAGE" value="SEARCH" />

              <Actinic:Variable Name="SearchPrompt"/> <Actinic:Variable Name="RetailOnlyWarning"/>
              <br /><br />

              <table border="0" cellspacing="0" cellpadding="3">
              <tr>
              <td valign="top">
              <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"/>
              <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">
              <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>
              </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"> <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>
              </td>
              </tr>
              </actinic:block>
              <tr>
              <td colspan="2" valign="bottom">
              <input type="submit" name="ACTION" value="<Actinic:Variable Name="SearchLabel"/>" />
              </td>
              </tr>
              </table>

              <!-- alert("<Actinic:Variable Name="UnregCustomersNotAllowedMessage"/>");
              return false; -->

              </form>

              <div align="center"><actinic:variable name="ActinicSearchPageLink" /></div>

              Comment


                #8
                Here is the code from a default page ...
                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>
                
                <input type="hidden" name="PAGE" value="SEARCH" />
                
                         <Actinic:Variable Name="SearchPrompt"/> <Actinic:Variable Name="RetailOnlyWarning"/>
                         <br /><br />
                
                         <table border="0" cellspacing="0" cellpadding="3">
                            <tr>
                               <td valign="top">
                                  <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"/>
                                  <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">
                                  <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>
                              </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"> <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>
                                 </td>
                              </tr>
                           </actinic:block>
                           <tr>
                              <td colspan="2" valign="bottom">
                                 <input type="submit" name="ACTION" value="<Actinic:Variable Name="SearchLabel"/>" />
                              </td>
                           </tr>
                        </table>
                
                         <!-- alert("<Actinic:Variable Name="UnregCustomersNotAllowedMessage"/>");
                         return false; -->
                
                </form>
                
                <div align="center"><actinic:variable name="ActinicSearchPageLink" /></div>
                Regards,
                Bruce King
                SellerDeck

                Comment

                Working...
                X