Title: Message
the code i took was from a live site, lay_clean.cfm just removes all the layout gumpf and make it's "print ready" - i should of removed the lay_clean.cfm as you correctly pointed out but my eratic click finger got the better of me!
 
i hoped no-one would notice - darn you!
 
jb.
 
-----Original Message-----
From: Lee Borkman [mailto:[EMAIL PROTECTED]]
Sent: 20 May 2002 16:31
To: [EMAIL PROTECTED]
Subject: Re: How to suppress default layout

What's the point of using lay_clean, John?  That has exactly the same effect as setting fusebox.layoutfile="", doesn't it?  One less layout file (per circuit) to worry about.

----- Original Message -----

 
Hi craig,

How about using <cfparam name="attributes.SuppressLayout" default="true"> in
your fuseaction you want the layout suppressed but then in you fbx_layouts
have something like:

<cfif Fusebox.isCustomTag or attributes.suppressLayout>
    <cfset Fusebox.layoutDir="">
    <cfset Fusebox.layoutFile="lay_clean.cfm">
<cfelse>
    <cfset Fusebox.layoutDir="">
    <cfset Fusebox.layoutFile="lay_typical.cfm">
</cfif>

Where lay_clean.cfm just outputs <cfoutput>#fusebox.layout#</cfoutput>

...

_____________________________________________________________________
This message has been checked for all known viruses by UUNET delivered
through the MessageLabs Virus Control Centre. For further information visit
http://www.uk.uu.net/products/security/virus/
==^================================================================
This email was sent to: [email protected]

EASY UNSUBSCRIBE click here: http://topica.com/u/?bUrFMa.bV0Kx9
Or send an email to: [EMAIL PROTECTED]

T O P I C A -- Register now to manage your mail!
http://www.topica.com/partner/tag02/register
==^================================================================

_____________________________________________________________________
This message has been checked for all known viruses by UUNET delivered
through the MessageLabs Virus Control Centre. For further information visit
http://www.uk.uu.net/products/security/virus/

Reply via email to