Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Fuji Kusaka 2203 posts 4220 karma points
    Apr 02, 2011 @ 06:38
    Fuji Kusaka
    0

    XSLT Search 3.0

    Hi,

    I just installed XSLT Search 3.0 under version 4.7.0 and I want the search to look through all the content of my website which is fine.

    So my search can be accessible from any page, but the results should be displayed in the search.aspx page only.

    In my HomepageTemplate i inserted the macros like this:

    <form method="get" action="search.aspx?">
          <umbraco:Macro source="-1" searchFields="@nodeName,bodyText" previewFields="bodyText,metaDescription" searchBoxLocation="top" previewType="Beginning" resultsPerPage="5" previewChars="225" showPageRange="1" showOrdinals="1" showScores="1" showStats="1" Alias="XSLTsearch" runat="server"></umbraco:Macro>
     </form>

     

    But when the search page is displayed by results is null.

    With the same code but no action i get the results that is:

    <form method="get" runat="server">
          <umbraco:Macro source="-1" searchFields="@nodeName,bodyText" previewFields="bodyText,metaDescription" searchBoxLocation="top" previewType="Beginning" resultsPerPage="5" previewChars="225" showPageRange="1" showOrdinals="1" showScores="1" showStats="1" Alias="XSLTsearch" runat="server"></umbraco:Macro>
    </form>

    But with the same code in the search.aspx page the search doesnt work it returns "0"

     

    Can someone help me out with this??

     

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Apr 02, 2011 @ 10:38
    Jan Skovgaard
    1

    Hi Fuji

    Hmm, I'm in a little doubt here but what happens if you add "/" ? Like "/search.aspx" so the url is absolute?

    /Jan

  • adarsh 46 posts 66 karma points
    Apr 08, 2011 @ 12:13
    adarsh
    0

    hi jan

    i installed xslt search 3.0.1 and its working fine,

    i want to display the search results in search.aspx page, but its displaying in the same box where my search button is.

    what i did is

    this is my template page where i am adding the macro of xslt with form

    <div class="col_4">
                      <p>Search:</p>
                        <div class="full_width textbox_holder">
                          <from method="get" action="/search.aspx" >
                            <umbraco:Macro Alias="XSLTSearch" runat="server"></umbraco:Macro>
                          </form>

                         </div>

    </div>

    but right now what is happening is

    the reslut is coming in same text box.

    Thanks.


  • Fuji Kusaka 2203 posts 4220 karma points
    Apr 08, 2011 @ 12:34
    Fuji Kusaka
    0

    Hi Adarsh,

    In your MasterTemplate or whatever you are working with insert this according to how you name your search page

     <form method="post" action="search.aspx?">
          <input type="text" name="search"/>
          <input type="button" value="Search" />
    </form>

    Then in your XSLTSearch Template

    <form method="get" action="search.aspx?">
          <umbraco:Macro Alias="XSLTSearch" runat="server"></umbraco:Macro>
     </form>

    Give this a try


    //fuji

  • adarsh 46 posts 66 karma points
    Apr 08, 2011 @ 12:56
    adarsh
    0

    HI Fuji

    thanks for reply fuji.

    its not working.

    iam getting a seperate form in master template and

    xsltsearch template.

    where master template search is not working

    and xslt search tempalte is working.

     

  • Fuji Kusaka 2203 posts 4220 karma points
    Apr 08, 2011 @ 13:05
    Fuji Kusaka
    0

    Adarsh

     

    Can you send the code you are unsing in your master template?? and your xslt search template??...

     

    Fuji

  • adarsh 46 posts 66 karma points
    Apr 08, 2011 @ 13:36
    adarsh
    0

    hi Fuji

    its in master template.(its called sbcc)

    <asp:Content ID="page" ContentPlaceHolderID="cph_page" runat="server">

    <div class="full_width header">

    <div class="col_4">
                      <p>Search:</p>
                        <div class="full_width textbox_holder">
                          <form method="post" action="search.aspx?">
                             <input type="text" name="search"/>
                              <input type="button" value="Search"  />                       
                          </form>
                      </div>

    </div>

    </div>

    and defalut template iam adding theslt search here

    <%@ Master Language="C#" MasterPageFile="~/masterpages/SBCC.master" AutoEventWireup="true" %>

      
       
     
    <asp:content ContentPlaceHolderId="cph_main" runat="server">
      
       
       <asp:ContentPlaceHolder ID="cph_sub_nav" runat="server" />
      <form method="get" action="search.aspx?">
          <umbraco:Macro Alias="XSLTSearch" runat="server"></umbraco:Macro>
      </form>
      
    </asp:content>

    <asp:content ContentPlaceHolderId="cph_header" runat="server">
      
    </asp:content>

     

    hi fuji  copied all my master tempalte and

    defalut page.

    i really didnt understand .what going on.

    sorry fuji,,

    thanks.



     

                 
                         

  • Fuji Kusaka 2203 posts 4220 karma points
    Apr 08, 2011 @ 14:59
    Fuji Kusaka
    1

    Why are you using those codes for

    <asp:Content ID="page" ContentPlaceHolderID="cph_page" runat="server">
    <
    div class="full_width header">
    <
    div class="col_4">
                      <p>Search:</p>
                        <div class="full_width textbox_holder">
                          <form method="post" action="search.aspx?">
                             <input type="text" name="search"/>
                              <input type="button" value="Search"  />                       
                          </form>
      </div></div></div>

                  

     

    This should be in your default template or masterTemplate

    <asp:Content ContentPlaceHolderID="ContentPlaceHolderDefault" runat="server">
    <
    form method="post" action="search.aspx?">
          <input type="text" name="search"/>
          <input type="button" value="Search"  />
    </form>
    </asp:content>

     

    and your Search Template

    <form method="get" action="search.aspx?">
          <umbraco:Macro Alias="XSLTSearch" runat="server"></umbraco:Macro>
     </form>

     

     

    Fuji

  • adarsh 46 posts 66 karma points
    Apr 08, 2011 @ 17:08
    adarsh
    0

    hi fuji

    thanks fuji...

     

  • Fuji Kusaka 2203 posts 4220 karma points
    Apr 08, 2011 @ 17:16
    Fuji Kusaka
    0

    No worries adarsh.

     

    Is it working now???

     

  • adarsh 46 posts 66 karma points
    Apr 08, 2011 @ 18:52
    adarsh
    0

    ya its working

    i did with javascript..

    thanks fuji

  • Md Johirul Islam 37 posts 57 karma points
    Oct 12, 2011 @ 18:54
    Md Johirul Islam
    0

    I install XSLT package every thing working fine. But the problem is when i type into the search input bos the result is show in my target page and near the inpute search box. Any one know why it happen. Please provide me the solution..... Thank you.......

Please Sign in or register to post replies

Write your reply to:

Draft