Skip to main content
Known Participant
May 14, 2011
Answered

exclude template for cffeed

  • May 14, 2011
  • 1 reply
  • 444 views

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

    This topic has been closed for replies.
    Correct answer Dave Watts

    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/

    1 reply

    Dave WattsCommunity ExpertCorrect answer
    Community Expert
    May 15, 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
    Known Participant
    May 15, 2011

    great

    thank you