I have recently rebuilt my site from a fresh and copied an existing CWS_Search control from the Umbraco Creative Website Starter , I have copied over the user control for the search box and created the a macro for this. When I perform a search it redirects the page to "/CWS_search.aspx?search=test", I am getting a "page not found" error. Where can I find this aspx page? I have looked high and low, is this a URLRewrite or something?
The CWS probably assumes you're using the whole package, and therefore is looking for a page that doesn't exist. Try creating the page yourself, and check on a cws install see what usercontrols/macros are used on this page to display the results.
CWS and CWS2 both use XSLTsearch. You can install XSLTsearch from http://our.umbraco.org/projects/xsltsearch, the package repository, as a Runway Module (if you have Runway installed), or grab it from my website at www.percipientstudios.com/xsltsearch.aspx
The most up-to-date version is that in the umbraco project (http://our.umbraco.org/projects/xsltsearch) and in the Runway Module (v2.8), which is optimized for umbraco 4 and masterpages. The other sources and CWS2 currently have v2.7, which is optimized for umbraco 3's template system.
cool, I downloaded 2.8 and its all setup but one small probelem. I want the search box on the home page (in the header), when u click search i want it to open a new page with the results in. This module does the search and results in the same page.
On the homepage, set the form's action= to the url of the search page (probably /search.aspx but you may have called it something else).
Then, on the template for the search page, you can hide the search box if you want to. If the search box is always at the top of the page you don't need it on the search page itself. Simply update the macro parameters so that the searchBoxLocation="NONE" to remove the search box from the search page itself.
All the configuration details are in the XSLTsearch documentation.
Yes as Doug mentions CWS2 uses the great XSLT Search that Doug has wrote.
My search box usercontrol was a simple control that took the text inside the box and redirected the user to the page with Doug's XSLT template "CWS_Search" which contains Doug's XSLT Search macro. Where I configured the macro to remove the searchbox as Doug has mentioned above with the property searchBoxLocation="NONE"
Another reason I didn't just use a <form post="/CWS_search.aspx"> around a normal text input in HTML was that in ASP.NET you can only have one <form runat="server"> tag per page hence having a .NET usercontrol to do this.
CWS_Search problems
Hello,
I have recently rebuilt my site from a fresh and copied an existing CWS_Search control from the Umbraco Creative Website Starter , I have copied over the user control for the search box and created the a macro for this. When I perform a search it redirects the page to "/CWS_search.aspx?search=test", I am getting a "page not found" error. Where can I find this aspx page? I have looked high and low, is this a URLRewrite or something?
Please help
Thanks in advance
Dean
The CWS probably assumes you're using the whole package, and therefore is looking for a page that doesn't exist. Try creating the page yourself, and check on a cws install see what usercontrols/macros are used on this page to display the results.
Alternatively, try the excellent http://www.percipientstudios.com/xsltsearch/overview.aspx
CWS and CWS2 both use XSLTsearch. You can install XSLTsearch from http://our.umbraco.org/projects/xsltsearch, the package repository, as a Runway Module (if you have Runway installed), or grab it from my website at www.percipientstudios.com/xsltsearch.aspx
The most up-to-date version is that in the umbraco project (http://our.umbraco.org/projects/xsltsearch) and in the Runway Module (v2.8), which is optimized for umbraco 4 and masterpages. The other sources and CWS2 currently have v2.7, which is optimized for umbraco 3's template system.
So... go get the package and documentation from http://our.umbraco.org/projects/xsltsearch and you'll have search running in a few minutes.
cheers,
doug.
Such a fast response!
cool, I downloaded 2.8 and its all setup but one small probelem. I want the search box on the home page (in the header), when u click search i want it to open a new page with the results in. This module does the search and results in the same page.
On the homepage, set the form's action= to the url of the search page (probably /search.aspx but you may have called it something else).
Then, on the template for the search page, you can hide the search box if you want to. If the search box is always at the top of the page you don't need it on the search page itself. Simply update the macro parameters so that the searchBoxLocation="NONE" to remove the search box from the search page itself.
All the configuration details are in the XSLTsearch documentation.
cheers,
doug.
Yes as Doug mentions CWS2 uses the great XSLT Search that Doug has wrote.
My search box usercontrol was a simple control that took the text inside the box and redirected the user to the page with Doug's XSLT template "CWS_Search" which contains Doug's XSLT Search macro. Where I configured the macro to remove the searchbox as Doug has mentioned above with the property searchBoxLocation="NONE"
For future reference any questions/concerns with CWS, it has its own forum on the project on our.umbraco.org
http://our.umbraco.org/projects/creative-website-starter-(cws)
Warren
Another reason I didn't just use a <form post="/CWS_search.aspx"> around a normal text input in HTML was that in ASP.NET you can only have one <form runat="server"> tag per page hence having a .NET usercontrol to do this.
Warren
Sorry for the delay guys,
I've just read your posts and it all makes sense. I've applied your feedback and all is working perfectly. Thanks everyone!
Keep up the fantastic support guys, Umbraco forever!
Dean
is working on a reply...