• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 220
  • Last Modified:

Displaying querystring in Search results page



In my database i am using a custom $$Search form and the results are displayed in a custom form
$$Searchtemplate for SearchView.
Is there a way to display the string that was searched for on the search results page ?

For exemple

Search results for "query" :

results
...


0
Steamer
Asked:
Steamer
  • 3
1 Solution
 
ZvonkoSystems architectCommented:
You need two extra fields on your $$Searchtemplate Form.
1.) Query_String
2.) SearchString

The name of Query_String Field has to be so. This is a CGI field name.
The formula for your SearchString Field is then:
FIELD Query_String:=Query_String;
@Middle(Query_String;"&Query=";"&")


Good luck,
Zvonko

0
 
SteamerAuthor Commented:
That doesn't work , the URL that is returned is like


http://....?CreateDocument so i can't go that way.
0
 
ZvonkoSystems architectCommented:
Hello Steamer,

did you try this:
1.) On your Search form or the $$Search form is there a field with the name: Query
2.) Simply repeat this field "Query" on your $$Searchtemplate Form.


Good luck,
Zvonko

0
 
ZvonkoSystems architectCommented:
Thanks.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now