Solved

How to get around restrictions on cfinclude not passing parameters?

Posted on 2006-11-06
3
711 Views
Last Modified: 2013-12-24
I am trying to automate the printing of several pages. Part of what I want to do is this:

<body>
<cfinclude template="/recipes/recipe_show.cfm?recID=5">
<p class="break"><br></p>
...
</body>

My problem is that the cfinclude, apparently, does not take parameters ... so how do I get the recipe ID to the recipe_show page?
0
Comment
Question by:alicia1234
  • 2
3 Comments
 
LVL 7

Accepted Solution

by:
aseusainc earned 250 total points
ID: 17886464
This should work:

<body>
<cfset recID=5>
<cfinclude template="/recipes/recipe_show.cfm">
<p class="break"><br></p>
...
</body>
0
 
LVL 7

Expert Comment

by:aseusainc
ID: 17886470
Just a pointer...Think of an include as if you cut and pasted the templates code directly into your main page instead of including it, not as some sort of external app.
0
 

Author Comment

by:alicia1234
ID: 17889832
Just a note ... I had to do this:

<cfset URL.recID = 5>
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In our day to day coding, how many times have we come across a necessity to check whether a URL is a broken link or not? For those of you that answered countless and are using ColdFusion like myself, then this article is for you.  It will show yo…
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now