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?
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?
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.
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
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&next-value&another-value
Would that work or am I off?
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
I tried the & it was only getting the value of the first vaule not the next values I was trying to input after the &
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.
Hi Carlos,
You won't want an & you'll need something like:
search.aspx?search=first%20second%20third
Rich
Yep you are right Rich.
I have another question but I will make another topic question for it.
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?
Ok it does work. The tags work everything so far works out of the box.
Huge props to Mr. Douglas Robar for the package.
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
is working on a reply...