I have a several different search/results page that contain multiple lists with dynamic URL links to different related detail pages. When the user gets to one of the detail pages, I want to provide a customized URL to return them to the list page where they started.
I have a general idea about how to do this, but my implementation isn't working. Here's what I've got.
1. Each list page sets a variable that identifies itself as the originating page with a CFPARAM tag (I placed this at the top of the list page):
<cfparam name="crossref" default="tid">
2. Then I inserted the variable in the URL link between two CFOUTPUT tags:
<CFOUTPUT>
<TR VALIGN="baseline">
<TD colspan="3" CLASS="#Class#" > <span class="maintext2"><a href="../wsh/cr_wsh_detail_01.cfm?id=#id#&wsh_year=#wsh_year#&crossref=#tid#"><font color="##000099">#system# (#wsh_year#)</font></a></span> <div align="left"></div>
<div align="left"></div></TD>
</TR></CFOUTPUT>
I'm not sure if it works on the detail page because I can't get out of the list page. It fails on the URL in Step 2. The error I get is below. The error says I haven't named the query attribute, but this wasn't a query. Any help is appreciated.
An error occurred while evaluating the expression:
#tid#
Error near line 155, column 143.
---------------------------------------
Error resolving parameter TID
ColdFusion was unable to determine the value of the parameter. This problem is very likely due to the fact that either:
You have misspelled the parameter name, or
You have not specified a QUERY attribute for a CFOUTPUT, CFMAIL, or CFTABLE tag.
The error occurred while processing an element with a general identifier of (#tid#), occupying document position (155:142) to (155:146) in the template file
I have a general idea about how to do this, but my implementation isn't working. Here's what I've got.
1. Each list page sets a variable that identifies itself as the originating page with a CFPARAM tag (I placed this at the top of the list page):
<cfparam name="crossref" default="tid">
2. Then I inserted the variable in the URL link between two CFOUTPUT tags:
<CFOUTPUT>
<TR VALIGN="baseline">
<TD colspan="3" CLASS="#Class#" > <span class="maintext2"><a href="../wsh/cr_wsh_detail_01.cfm?id=#id#&wsh_year=#wsh_year#&crossref=#tid#"><font color="##000099">#system# (#wsh_year#)</font></a></span> <div align="left"></div>
<div align="left"></div></TD>
</TR></CFOUTPUT>
I'm not sure if it works on the detail page because I can't get out of the list page. It fails on the URL in Step 2. The error I get is below. The error says I haven't named the query attribute, but this wasn't a query. Any help is appreciated.
An error occurred while evaluating the expression:
#tid#
Error near line 155, column 143.
---------------------------------------
Error resolving parameter TID
ColdFusion was unable to determine the value of the parameter. This problem is very likely due to the fact that either:
You have misspelled the parameter name, or
You have not specified a QUERY attribute for a CFOUTPUT, CFMAIL, or CFTABLE tag.
The error occurred while processing an element with a general identifier of (#tid#), occupying document position (155:142) to (155:146) in the template file