Copied to clipboard

Flag this post as spam?

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


  • hetaurhet 245 posts 267 karma points
    Feb 25, 2012 @ 13:40
    hetaurhet
    0

    fulltextsearch xslt and form field

    I have master template with form having search input field and button field. On clicking the button it opens search page to which fulltextsearch template is applied which is having fulltextsearch macro.

    in this macro I want to access search input field to set its value from querystring parameter. How can I do that?

     

  • Kim Andersen 1447 posts 2196 karma points MVP
    Feb 25, 2012 @ 19:14
    Kim Andersen
    0

    So you want to grab the value from a query string and use it as the value in the input field?

    Then try something like this:

    <input type="text" name="q" value="{umbraco.library:Request('q')}" />

    I hope hat I've understod your question the right way :)

    /Kim A

  • hetaurhet 245 posts 267 karma points
    Feb 27, 2012 @ 05:18
    hetaurhet
    0

    yes... u understood it right... but it shows {umbraco.library:Request('Search')} only in input field. The form is in template.

  • Kim Andersen 1447 posts 2196 karma points MVP
    Feb 28, 2012 @ 21:45
    Kim Andersen
    0

    Ahh the form is in a template and not a XSLT-file. Sorry dude, then my solution doesn't work as you said :(

    My bad. I'll return if I find the solution to your problem.

    /Kim A

  • hetaurhet 245 posts 267 karma points
    Feb 29, 2012 @ 05:03
    hetaurhet
    0

    yes form is outside of xslt in template.  will be waiting for solution.

  • Rob Watkins 369 posts 701 karma points
    Feb 29, 2012 @ 11:40
    Rob Watkins
    0

    A template is just a .NET page file, so shouldn't you just be able to do somethign like:

    <inputtype="text"name="q"value="<%= Request.Params["q"] %>"/>
  • hetaurhet 245 posts 267 karma points
    Feb 29, 2012 @ 14:23
    hetaurhet
    0

    yes.. thanx a lot... it works...

Please Sign in or register to post replies

Write your reply to:

Draft