Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

cfimport not working in Railo

Posted on 2010-11-15
2
Medium Priority
?
587 Views
Last Modified: 2012-05-10
Hi,
I have just downloaed Railo and copied one of my simple CF sites over to test but cfimport does not seem to be working.

I use cfimport as below to bring in the top and bottom of every page and send variables to the template.

Has anyone come across this before?

Regards
Leigh

THIS IS THE TOP OF THE INDEX.cfm PAGE THE CFIMPORT TAG IS CALLED ON EVERY PAGE

<cfimport prefix="banilla" taglib="assets/templates/" />
<banilla:public section="Root" 
					page="Index" 
                    thickbox="False" 
                    Title="" 
                    description="" 
                    keywords=""
                    robots="True">



THIS IS THE CFM PAGE THAT IS IMPORTED (IN THIS CASE PUBLIC.CFM)


<cfif not isDefined('thisTag.executionMode')>
  <cfabort />
</cfif>
<!---Start: set defaults for the "clickKclic: public template--->
<cfparam name="attributes.title" default="Pat McKeown" />
<cfparam name="attributes.description" default="" />
<cfparam name="attributes.keywords" default="Pat McKeown" />
<cfparam name="attributes.section" default="Root" />
<cfparam name="attributes.page" default="Index" />
<cfparam name="attributes.tabs" default="false" type="boolean" />
<cfparam name="attributes.thickbox" default="false" type="boolean" />
<cfparam name="attributes.robots" default="true" type="boolean" />
<cfparam name="attributes.footer" default="true" type="boolean"/>
<cfparam name="attributes.gallery" default="false" type="boolean"/>


<cfswitch expression="#thistag.hasendtag#">

<cfcase value="NO">
  <!---START: PAGE HEADER--->
  
  
  
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<cfif attributes.robots>
        <meta name="robots" content="index,follow" />
    <cfelse>
        <meta name="robots" content="noindex,nofollow" />
    </cfif>
	<cfoutput>
        <title>#attributes.title#</title>
        <meta name="description" content="#attributes.description#" />
        <meta name="keywords" content="#attributes.keywords#" />
        <meta name="Author" content="Banilla" />
        <meta name="Copyright" content="Copyright #year(now())# #Application.Client#" />
        <meta name="MSSmartTagsPreventParsing" content="true" />
		<link rel="shortcut icon" href="faveicon.ico" type="image/x-icon" />
		<link rel="stylesheet" type="text/css" href="#Application.SecureHttpPath#assets/styles/Public.css"/>
		<link rel="stylesheet" type="text/css" href="#Application.SecureHttpPath#assets/styles/Blog.css"/>
        <cfif attributes.gallery>
		<link rel="stylesheet" href="#Application.HttpPath#Assets/Styles/galleriffic-3.css" type="text/css" />
		<cfelse>
		<link rel="stylesheet" href="#Application.HttpPath#Assets/Styles/galleriffic-2.css" type="text/css" />
        </cfif>
		<script type="text/javascript" src="#Application.HttpPath#Assets/scripts/jquery.js"></script>
		<script type="text/javascript" src="#Application.HttpPath#Assets/scripts/webshop.js"></script>
		<script type="text/javascript" src="#Application.HttpPath#Assets/scripts/blog.js"></script>
		<script type="text/javascript" src="#Application.HttpPath#Assets/scripts/jquery.galleriffic.js"></script>
		<script type="text/javascript" src="#Application.HttpPath#Assets/scripts/jquery.opacityrollover.js"></script>
		<!-- We only want the thunbnails to display when javascript is disabled -->
		<script type="text/javascript">
			document.write('<style>.noscript { display: none; }</style>');
		</script>
    </cfoutput>
</head>
<body>

<div id="topBar"></div>

<div id="pagewrapper">

<div id="blanket"></div>

<div class="contentblock" style="margin-bottom:20px">


<cfoutput>
<div id="menubar">
<div id="logobox"><img src="#Application.HttpPath#assets/Img/frontend/logo.png" alt="logo" /></div>
<div id="menubox">
<cfinclude template="../include/MenuTop.cfm">
</div>
</div>
</cfoutput>

<div id="contentheader">

</div>



<div id="popupboxholder" style="position:absolute; left:0px; width:900px; display:none; z-index:1001;">
<div id="popupboxfixer" 
	style="position:fixed; 
            top:10%;
            width:900px;
            display:none; 
            z-index:1001;">
            <div id="popupbox" style="margin:0 auto;
                                        background-color:#FFFFFF; 
                                        border:3px solid #84b818; 
							            max-height:500px;
                                        overflow:auto;
                                        display:none; 
                                        z-index:1001;">
            </div>
            </div>

</div>










  </cfcase>

  <!---END: PAGE HEADER--->
<cfcase value="YES">
  <!---START: PAGE FOOTER--->
  
<div id="contentbottom">
	
</div>
<div id="footer">

</div>

</div>
</div>


</body>
</html>
  <cfabort>
  </cfcase>
  <!---END: PAGE FOOTER--->
</cfswitch>

Open in new window

0
Comment
Question by:Lmillard
[X]
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
2 Comments
 
LVL 19

Accepted Solution

by:
Jones911 earned 1000 total points
ID: 34140098
I have not seen this issue but I'd suggest you ask on the Railo mailing list for a faster response.

http://groups.google.com/group/railo
0
 
LVL 6

Assisted Solution

by:Codebot
Codebot earned 1000 total points
ID: 34140105
0

Featured Post

The Ideal Solution for Multi-Display Applications

Check out ATEN’s VS1912 12-Port DP Video Wall Media Player at InfoComm 2017. Kerri describes how easy it is to design creative video walls in asymmetric layouts and schedule detailed playlists ahead of time with its advanced scheduling feature.

Question has a verified solution.

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

I spent nearly three days trying to figure out how incorporate OAuth in Coldfusion for the Eventful API. Hopefully, this article will allow Coldfusion Programmers to buzz through the API when they need to. Basically, what this script does is authori…
Recently while working on a project I got a very annoying cfdocument has no body error message. I had never seen this error before. So I checked the code. The code was pretty simple; it was Just showing me the cfdocumnt tag and inside that tag a …
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

660 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