Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

exclude template for cffeed

Community Beginner ,
May 13, 2011 May 13, 2011

Hi,

my CF application has

<cffunction name="onRequestStart" returnType="boolean" output="yes">

          <cfcontent type="text/html; ISO646-IT">         <cfinclude template="SiteHeader.cfm">         <cfreturn true>     </cffunction>

<cffunction name="onRequestEnd" returnType="void" output="yes">          <cfinclude template="SiteFooter.cfm">     </cffunction>

on Application.cfc file.

It is ok but I have to create feeds now and cffeed does not work cause of cfinclude.

Is there a way to exclude from certain pages the cfinclude ?

any help is much appreciated

410
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , May 14, 2011 May 14, 2011

You can either place the feeds in a separate directory, and use a different Application.cfc in that directory, or you can add logic to onRequestStart and onRequestEnd to ignore requests that match the feed URL.

Dave Watts, CTO, Fig Leaf Software

http://www.figleaf.com/

http://training.figleaf.com/

Translate
Community Expert ,
May 14, 2011 May 14, 2011

You can either place the feeds in a separate directory, and use a different Application.cfc in that directory, or you can add logic to onRequestStart and onRequestEnd to ignore requests that match the feed URL.

Dave Watts, CTO, Fig Leaf Software

http://www.figleaf.com/

http://training.figleaf.com/

Dave Watts, Eidolon LLC
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
May 14, 2011 May 14, 2011
LATEST

great

thank you

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources