Copied to clipboard

Flag this post as spam?

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


  • Patrick 33 posts 82 karma points
    Aug 09, 2011 @ 11:21
    Patrick
    0

    XSLT search only searches Search.aspx

    Certainly not a bug, but I didn't know where to post this question, so hopefully someone can help me out or redirect me to the proper location for this question.

    I use XSLTsearch out of the box, with source set to -1 to search the whole site.

    When I start searching, only one page gets searched, the search page itself.

    My sitestructure is as follows:

    Content

    + Navigation

    + Niews

    + Members

    Search.aspx

     

    Is it possible XSLTsearch cannot perform a search action for the whole site within this structure, or am i doing something totally illogical.

     

    Greetings, Patrick

  • Fuji Kusaka 2203 posts 4220 karma points
    Aug 09, 2011 @ 11:30
    Fuji Kusaka
    0

    Hi Patrick,

    Have a look at this thread for your XSLT Search. http://our.umbraco.org/forum/developers/xslt/21951-I-cannot-get-correct-search-results-by-XSLTsearch

     

    //fuji

  • Patrick 33 posts 82 karma points
    Aug 16, 2011 @ 11:30
    Patrick
    0

    Hi fuji,

    Sorry for my late reply, I had some issues with the structure of my website, which made it illogical for XSLTsearch to search.
    When i've sorted out the structure I also solved this problem, thanks for your reply!

    Greetings, Patrick

  • Fuji Kusaka 2203 posts 4220 karma points
    Aug 16, 2011 @ 11:36
    Fuji Kusaka
    0

    Hi Patrick,

    Well done if you got it sorted out. .

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

     

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

     

  • Fuji Kusaka 2203 posts 4220 karma points
    Oct 12, 2011 @ 19:02
    Fuji Kusaka
    0

    Hi there,

    Have a look a this, you might be missing the post method where you want the results to display.

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

    Thank you. I read it and try to use before 

              <form method="get" action="/XSLTsearch.aspx?">

             <umbraco:Macro Alias="XSLTsearch" runat="server">umbraco:Macro>

           form> 

    Then 

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

    A page can have only one server-side Form tag.

    and more. error 

    Please any other idea. Thank you



  • Fuji Kusaka 2203 posts 4220 karma points
    Oct 12, 2011 @ 20:00
    Fuji Kusaka
    0

    In your MainTemplate where you have your search and your input type you should have something like

    <form method="post" action="search.aspx?">                             
        <input type="text" name="search" value="Search" onFocus="this.value=''"/> 
         <input type="image" alt="Search" src="yourSubmitButton.png" value="Search"/> 
    </form>

     

    And in your XLST Search Template where you want the Result to display

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

     


  • Fuji Kusaka 2203 posts 4220 karma points
    Oct 12, 2011 @ 20:22
    Fuji Kusaka
    0

    One important note. Your form needs to be outside of any other form.

    So when adding this, or even your method="get"

    <formmethod="post"action="search.aspx?">                             
        <inputtype="text"name="search"value="Search"onFocus="this.value=''"/>
         <inputtype="image"alt="Search"src="yourSubmitButton.png"value="Search"/>
    </form>


    Make sure it is not wrap inside another <form >....</form> tag

  • Md Johirul Islam 37 posts 57 karma points
    Oct 13, 2011 @ 13:45
    Md Johirul Islam
    0

    Thank you Fuji. It work properly

  • Md Johirul Islam 37 posts 57 karma points
    Oct 13, 2011 @ 13:45
    Md Johirul Islam
    0

    Hi I am new in umbraco CMS .net controler. I am just wondering any one cal help me to create a customize Contact form by Web User control. I follow thw whole tutorial. But the problem is when i add valodation contron on my form. Then i found this erroe message...

     

    The ControlToValidate property of 'RequiredFieldValidator1' cannot be blank. and more ......

     

     

    <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ContactUsForm.ascx.cs" Inherits="ContactUsForm.ContactUsForm" %>

     

     <form action="" method="post" name="contactus">


    <table width="672" border="0" cellspacing="0" cellpadding="0">

              <tr>

                <td width="292"><input type="text" name="fname" id="fname" value="First Name"/><asp:RequiredFieldValidator 

                        ID="RequiredFieldValidator1" runat="server" 

                        ErrorMessage="RequiredFieldValidator"></asp:RequiredFieldValidator>

                  </td>

                <td width="380" rowspan="6" valign="top"><table width="380" border="0" cellspacing="0" cellpadding="0" id="contact2">

                    <tr>

                      <td colspan="2"><textarea name="txtcomments" id="txtcomments" cols="45" rows="5">Enter text...</textarea></td>

                    </tr>

                    <tr>

                      <td width="187"><input name="Captcha" type="text" class="captcha" id="sml-input" value="78  BHG" /></td>

                      <td width="193"><span id="accessiblity">Ut et metus dapibus dolrutrum vestibulum molestie id ligula.</span></td>

                    </tr>

                    <tr>

                      <td colspan="2"><input name="sml-input" type="text" id="sml-input" value="Enter Code" /></td>

                    </tr>

                    <tr>

                      <td colspan="2"><a class="button" type="submit" href="#">Send Enquiry</a></td>

                    </tr>

                  </table></td>

              </tr>

              <tr>

                <td><input name="fname" type="text" id="lname" value="Last Name" /></td>

              </tr>

              <tr>

                <td><input name="company" type="text" id="company" value="Company Name" /></td>

              </tr>

              <tr>

                <td><input name="emailaddress" type="text" id="emailaddress" value="Email address" /></td>

              </tr>

              <tr>

                <td><select name="country" id="country">

                    <option>Please select your country</option>

                  </select></td>

              </tr>

              <tr>

                <td><label>

                    <input type="checkbox" name="chkmail" id="chkmail" />

                    I would like to receive relevant insight, news and reports from ICLP</label></td>

              </tr>

            </table>

            </form>


    Please give me an idea or anything else. Thank you.......

     

     

Please Sign in or register to post replies

Write your reply to:

Draft