Coldfusion Question

Posted on 2009-04-02
Last Modified: 2013-12-24
I have a coldfusion site and a nav with links to several reports. I have a page I created that lists and makes available a subfolders contents and I need to add a menu item and link it to this page. In my initialization.cfm, below is an example of an existing menu item and the link to a report. I need to be able to link to a url instead.

                                           <!--- =Warranty========================== --->
            <cfcase value="WR">
                  <cfset = "reports/warranty.cfm">
                  <cfset REQUEST.reportPerm = 14>
Can anyone tell me instead of this being a report that I link it to, how I can link it to the content page I created? Is it possible?
Question by:J C
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
LVL 36

Expert Comment

ID: 24054987
do you mean content page as in pdf or excel?

if so you'd use

 <cfcontent file="#pathtofileLocation#"  reset="no" type="application/pdf">  


Author Comment

by:J C
ID: 24055055
It is an EndPoint CMS. It uses a template. I have the menu item there but I need to figure out how to link it in my initialization page to a url instead of to an actual document or page.

LVL 36

Expert Comment

ID: 24055090
it's not clear to me what you are trying to do... can you explain in detail
Raise the IQ of Your IT Alerts

From IT major incidents to manufacturing line slowdowns, every business process generates insights that need to reach the people required to take action. You need a platform that integrates with your business tools to create fully enabled DevOps toolchains.

You need xMatters.


Author Comment

by:J C
ID: 24055112
I have a vendor portal which is an endpoint content management system. It is written in coldfusion. I have an initialization page for all of the different reports they run. I have a report nav that is managed through the database and then in the initialization page you link it normally to a report but instead of linking it to a report, I need to link it to the url that I included above. Is that possible?

Author Comment

by:J C
ID: 24055240
Using that example, right now if I click on the Warranty menu item it runs the report warranty.cfm

In essence what I would like to do is to have it go to a content item that I created in the CMS, to the url I posted instead. I hope that makes sense.
LVL 16

Accepted Solution

duncancumming earned 500 total points
ID: 24055264
<cfcase value="WR">
                <cflocation url="" addtoken="false">

Author Closing Comment

by:J C
ID: 31566019
Thank You

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Most ColdFusion developers get confused between the CFSet, Duplicate, and Structcopy methods of copying a Structure, especially which one to use when. This Article will explain the differences in the approaches with examples; therefore, after readin…
Lease-to-own eliminates the expenditure of hardware replacement and allows you to pay off the server over time. Usually, this is much cheaper than leasing servers. Think of lease-to-own as credit without interest.
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

696 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