Copied to clipboard

Flag this post as spam?

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


  • Dean Beasley 11 posts 34 karma points
    Aug 07, 2009 @ 16:52
    Dean Beasley
    0

    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

  • dandrayne 1138 posts 2262 karma points
    Aug 07, 2009 @ 17:05
    dandrayne
    0

    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

     

  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    Aug 07, 2009 @ 17:12
    Douglas Robar
    1

    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.

  • Dean Beasley 11 posts 34 karma points
    Aug 07, 2009 @ 18:00
    Dean Beasley
    0

    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.

     

  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    Aug 07, 2009 @ 18:27
    Douglas Robar
    1

    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.

     

  • Warren Buckley 2106 posts 4836 karma points MVP 7x admin c-trib
    Aug 07, 2009 @ 18:51
    Warren Buckley
    1

    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

  • Warren Buckley 2106 posts 4836 karma points MVP 7x admin c-trib
    Aug 07, 2009 @ 18:53
    Warren Buckley
    1

    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

  • Dean Beasley 11 posts 34 karma points
    Aug 14, 2009 @ 13:13
    Dean Beasley
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft