Newbies dan_fmpro Posted October 24, 2005 Newbies Posted October 24, 2005 (edited) I'm new to XML/XSLT. Does anyone know of a way to restore the last query for the next new search? I’ve created a page called ‘products.xsl’ which contains 2 parts. The top part of it is a search engine: category (popup menu) and keywords (text field). The bottom part is a search result list. After the search, I want the last item that I selected from popup menu STAYED within the search result list instead of reset to default. Is there a way to do that? Any helps would be appreciated. Thanks! Danny Edited October 24, 2005 by Guest
Martin Brändle Posted October 26, 2005 Posted October 26, 2005 Yes, there is a way. You can use the $request-query variable to extract the part of your query that corresponds to your category and get the query value. Check the FMS7A CWP Guide for the correct XPath syntax. Within the popup-menu, you compare each menu value to the query value. If they match, you can set the selected attribute in your menu option like this: menu entry. For this you need .
Newbies dan_fmpro Posted October 27, 2005 Author Newbies Posted October 27, 2005 That helps me getting started. Thanks for the tips. Danny :)
Recommended Posts
This topic is 7309 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now