Solved

How to get around restrictions on cfinclude not passing parameters?

Posted on 2006-11-06
3
698 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Have you ever sent email via ColdFusion and thought of tracking this mail to capture the exact date and time when the message was opened ?  If yes, then this article is for you ! First we need a table user_email with columns user_id , email , sub…
Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

744 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

16 Experts available now in Live!

Get 1:1 Help Now