Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

Restore last query for next new search


This topic is 6966 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted (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 by Guest
Posted

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 .

This topic is 6966 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.