Copied to clipboard

Flag this post as spam?

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


  • Carlos 338 posts 472 karma points
    Dec 20, 2011 @ 18:34
    Carlos
    0

    Droplist search

    I am trying to use the XSLTsearch to pull from a droplist for <select><option> type queries.

    The thing is we have 3 separate <select><option> in our search that we need to query on. I will change to parameters later.

    How would I use the <select><option> tag for my search rather than the string inputted in the search box?

    Any ideas would be greatly appreciated.

    Also, is there a way to redirect the page to a results page once a user uses the search?  

    Thanks in advance.

  • Rich Green 2246 posts 4008 karma points
    Dec 20, 2011 @ 18:51
    Rich Green
    0

    Hi,

    You need to post to the search page and pass the value of your dropdown as a a querystring parameter, something like

    /search.aspx?search=value-of-dropdown-here

    Rich

  • Carlos 338 posts 472 karma points
    Dec 20, 2011 @ 18:55
    Carlos
    0

    Just tried that. What about tieing the string together. Since there are 3 separate <select><option> droplists would I tie it together something like

    /search.aspx?search=value-of-dropdown-here&amp;next-value&amp;another-value

    Would that work or am I off?

  • Rich Green 2246 posts 4008 karma points
    Dec 20, 2011 @ 18:57
    Rich Green
    0

    Hi Carlos,

    I can't remember how XSLT search works in terms of 'and' 'or' searches.

    However you can experiment by just typing in the values as about on the search page directly into the address bar and see what you need from the drop downs?

    Rich

  • Carlos 338 posts 472 karma points
    Dec 20, 2011 @ 19:04
    Carlos
    0

    I tried the &amp; it was only getting the value of the first vaule not the next values I was trying to input after the &amp;

    Think that is the way XSLT is supposed to read the string connectors.  

    Any other ideas would be awesome

    Thanks this is really getting me on the right track though.

     

  • Rich Green 2246 posts 4008 karma points
    Dec 20, 2011 @ 19:17
    Rich Green
    0

    Hi Carlos,

    You won't want an &amp; you'll need something like:

    search.aspx?search=first%20second%20third

    Rich

  • Carlos 338 posts 472 karma points
    Dec 20, 2011 @ 19:19
    Carlos
    0

    Yep you are right Rich.

    I have another question but I will make another topic question for it.

  • Carlos 338 posts 472 karma points
    Dec 20, 2011 @ 19:51
    Carlos
    0

    This is actually a continuation.

    In the results, Lets say I am tagging items as First Value, Second Value and Third Value and am only doing the search based off of my predefined tags.

    Node One is tagged with First Value and Second Value

    Node Two is tagged with the Second and Third Value.

    Is there a way for the search results to only bring up when the droplist values are selected:

    Situation:

    Droplist 1 (Grades) values
    Grade One
    Grade Two
    Grade Three
    Grade Four
    Grade Five

    Droplist 2 (Subjects) values
    Subject One
    Subject Two
    Subject Three

    Droplist 3 (Room) values
    Room One
    Room Two
    Room Three

    So if a user select just Grade One it will bring up all items tagged under Grade One.
    If a user select just Subject Two it will bring up all items tagged under Subject Two.

    If the user refines the search to pull Grades One and Subject Two. We want to only match items to pull items tagged Grade One and Subject Two only. 
    Not all Grade One items and Subject Two items in the same results. Just the ones that have been tagged as being Grade One with the Subject Two tagged with it.
    Do you get what I am saying?

    Does this work currently in the XSLT Search or does it need to be modified?

    If it does need modified, where in the XSLT or how would I modify it to only matched our tagged criteria?

  • Carlos 338 posts 472 karma points
    Dec 20, 2011 @ 20:10
    Carlos
    0

    Ok it does work. The tags work everything so far works out of the box.

    Huge props to Mr. Douglas Robar for the package.

  • Atoosa Khoda 96 posts 148 karma points
    Apr 19, 2012 @ 02:28
    Atoosa Khoda
    0

    I have similar situation,i've implemented my node retaionship with ucomponent multi picker , i have the full description here our.umbraco.org/.../30929-advanced-search-on-nodes-relationship-

    could some please take a look and give me insights? much appreciated. Atoosa

Please Sign in or register to post replies

Write your reply to:

Draft