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.
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!
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.......
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" %>
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
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
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
Hi Patrick,
Well done if you got it sorted out. .
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.......
Hi there,
Have a look a this, you might be missing the post method where you want the results to display.
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
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>
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
Thank you Fuji. It work properly
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.......
is working on a reply...