Afternoon guys
We are using a content management system which uses a "View Printer Friendly
Page" link on the footer. If this is clicked, the page is resubmitted with a
variable: "?renderforprint=1" appended to the URL.
This is achieved by using #cgi.script_name#?renderforprint=1 in the code for
the link.
This works fine if the page URL has no other URL variables but if there are
some they do not get picked up when the link is clicked and it produces some
nice red CF error code on the web complaining about the missing variables.
I need to adjust this #cgi.script_name# to another CGI variable (I am
guessing) which picks up the parameters on the end
i.e. with http://wccdevaq01/yourcouncil/viewcouncillor.cfm?cID=4749
<http://wccdevaq01/yourcouncil/viewcouncillor.cfm?cID=4749> I need it to
pick up the viewcouncillor.cfm?cid=4749 then append &renderforprint=1
I have tried using #cgi.url# but that is not picking my page name up and url
variables up. What should I be doing or using to achieve this?
I also need to do a CFIF test to see if there are any URL variables on the
end so that I know whether to append ?renderforprint=1 (if no url variables)
or &renderforprint=1 if URL Variables already there. How can I test for
these?
_______________________________________________________<?xml:namespace
prefix = o ns = "urn:schemas-microsoft-com:office:office" />
* Regards,
Richard Lovelock
Westminster City Council - Web Support
Cap Gemini Ernst & Young
Southbank
95 Wandsworth Road
London
SW8 2HG
( 0870 906 7482
_______________________________________________________
=======================================================
This message contains information that may be privileged or confidential and is the
property of the Cap Gemini Ernst & Young Group. It is intended only for the person to
whom it is addressed. If you are not the intended recipient, youare not authorized to
read, print, retain, copy, disseminate, distribute, or use this message or any part
thereof. If you receive this message in error, please notify the sender immediately
and delete all copies of this message.
=======================================================