Copied to clipboard

Flag this post as spam?

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


  • Fredrik Esseen 610 posts 906 karma points
    Nov 11, 2010 @ 10:47
    Fredrik Esseen
    0

    Save query in custom table with xsltSearch

    Hi!

    im using xsltSearch on my website.

    Now i want to save the result to a table in the db. The reason is that I want to display the most popular searchwords.

    Are there someway to achieve this?

    Can I connect to the db from xslt and make an insert or do i have to write c-code inside the xslt?

  • Rich Green 2246 posts 4008 karma points
    Nov 11, 2010 @ 11:29
    Rich Green
    0

    Are you looking to save the search entries or the results of the search?

    Rich

  • Fredrik Esseen 610 posts 906 karma points
    Nov 11, 2010 @ 11:34
    Fredrik Esseen
    0

    Just the query, not the result.

    Just before receiving your message I solved it.

    In the template I retrieve the value like this:

    string query = Request.Form["search"];

    Sometimes its easier than you think :)

     

  • Rich Green 2246 posts 4008 karma points
    Nov 11, 2010 @ 11:37
    Rich Green
    0

    Glad you solved it.

    Are you using Google Analytics at all? If so you can track searching through that too (needs to be configured)

    Rich

  • Fredrik Esseen 610 posts 906 karma points
    Nov 11, 2010 @ 13:19
    Fredrik Esseen
    0

    Im going to install the Analytics module.

    Im displaying the most popular searches in the frontend so thats why I want to save it in a table :)

    Thx for your help!

Please Sign in or register to post replies

Write your reply to:

Draft