• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Current Page - including URL parameters

Guest
Aug 06, 2007 Aug 06, 2007

Copy link to clipboard

Copied

Not sure if this is actually possible, but figured it was worth a shot...

I have a search page within which I am trying to allow some 'refine' functionality, for example removing certain categories from the search results etc.

In an effort to keep down on the amount of code, my thought is that the simplest way of doing this would be to take the current URL, and simply tag on the extra parameter at the end, for example mydomain.com/search.cfm?q=phrase &remove=catid (bold being the extra added). This method seems preferable to trying to keep track of all the parameters - for example if the user refines the results numerous times.

I tried using #getfilefrompath(getbasetemplatepath())#, however this doesn't include existing variables and I haven't been able to identify a tag that does. Any pointers very much appreciated!
TOPICS
Advanced techniques

Views

344

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Deleted User
Aug 06, 2007 Aug 06, 2007
Just remembered a function that I have completely forgot about, so have now managed to solve my own problem.

For the benefit of anyone searching in the future, I used #CGI.QUERY_STRING# added at the end of the mydomain.cfm/search,cfm link, with my new parameters added thereafter, for example - mydomain.com/search.cfm?#CGI.QUERY_STRING#&new=param

Votes

Translate

Translate
LEGEND ,
Aug 06, 2007 Aug 06, 2007

Copy link to clipboard

Copied

i believe you are looking for
cgi.script_name (everything before the ?) and cgi.query_string
(everything after the ?)

---
Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Aug 06, 2007 Aug 06, 2007

Copy link to clipboard

Copied

LATEST
Just remembered a function that I have completely forgot about, so have now managed to solve my own problem.

For the benefit of anyone searching in the future, I used #CGI.QUERY_STRING# added at the end of the mydomain.cfm/search,cfm link, with my new parameters added thereafter, for example - mydomain.com/search.cfm?#CGI.QUERY_STRING#&new=param

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation