Try setting an "archive" id param in default.cfm (or Application.cfm) such
as <cfparam name="archive_id" default=""> then append the archive_id to the
end of you link 
http://www.carigamer.com/default.cfm?page=news/viewarchived.cfm&archive_id=1
234

Then instead of using "id" within viewarchived.cfm - change it to
#url.archive_id# 

Or something similar - would need to see code to more sure

James

"You're a big man, but you're out of shape.  With me it's a full time job.
Now behave yourself."
                                 "Get Carter" 1964

-----Original Message-----
From: Ang�l Stewart [mailto:[EMAIL PROTECTED]]
Sent: 07 March 2001 17:16
To: CF-Talk
Subject: Passing URL Values to An Included Page


Hello all!

I'm forging ahead, albeit slowly what with having a dayjob and all, with my
little gamesite, Carigamer.com

I'm now implmenting a simply News Archive viewing system, and have run into
a problem.


All the pages are included from the main page, default.cfm using the format
default.cfm?page=news/shownews.cfm

Which would display the shownews.cfm page within the layout and design of
the default.cfm page.

Sounds simple..it is. And it works really well to keep things together. I
just update the look on the default.cfm page and don't have to worry about
making changes to the look and feel on the content pages, or embedding
several CFINCLUDES on each individual page either.

However..I now have a slight problem.THe news archive page needs to have a
Variable passed to it..the ID of the news article that is to be read.

Of course http://www.carigamer.com/default.cfm?page=news/viewarchived?id=46
doesn't work...

Any neat ideas on how to pass this onto the next page?

The archivelist.cfm page is quite simply a grouped CFOUTPUT with simple HREF
strings with the ids embedded:
<a
href="default.cfm?page=news/newsviewer.cfm?RecordID=#allnews.id#">#allnews.h
eadline#</a>

Thanks,
-Gel
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to