Has anybody tried to use cfcontent more than once on a page? I am trying to show a number of thumbnail jpg's (about 10). Filepaths for these thumbnails are retrieved from a database via a query which is used in a cfloop. I set a session variable with the filename in the loop, then go off to another template to perform a cfcontent for the image source.
Problem is that the last filepath returned from the query is used as the filename in cfcontent for all of the thumbnails. I've checked the session variable name before and after using the img src = "index.cfm" template (which is the one that has cfcontent in it), and the session variable is displaying the correct filepath every time.
I'm now wondering if the server waits until the last possible moment to substitute the filepath into the cfcontent tag, thereby only using the last filepath.
Any ideas anybody?
Problem is that the last filepath returned from the query is used as the filename in cfcontent for all of the thumbnails. I've checked the session variable name before and after using the img src = "index.cfm" template (which is the one that has cfcontent in it), and the session variable is displaying the correct filepath every time.
I'm now wondering if the server waits until the last possible moment to substitute the filepath into the cfcontent tag, thereby only using the last filepath.
Any ideas anybody?