I have a very simple editor app. (note the very).
== callingtemplate.cfm
<cf__editor filename="content/filename.html">

== _editor.cfm
<cfset templatename = 
right(CGI.path_info,find("/",reverse(CGI.Path_Info))-1)>

<cfif edit>
  <form action=templatename>
     <textarea name="content"><cfinlude template="filename.html"></textarea>
  </form>
<cfelseif update>
  <cffile write file=filename.html content=content>
  <form action=templatename>
     <textarea><cfinlude template="filename.html"</textarea>
  </form>
<cfelse>
  <cfinlude template="filename.html">
<cfif>

loosely that is. and if i understand correctly.
Note: The form/textarea can be replaced with some inline text editors



From: "Dave Hannum" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: <[EMAIL PROTECTED]>
Subject: Re: Writing Inluded output in a file?
Date: Wed, 16 Aug 2000 10:15:29 -0400

Can you give a clearer description of what specifically you are attempting
to do?  Explain what you mean by "output of an includefile"

Dave


=================================
"What we need is a list of specific unknown problems we will encounter"

David Hannum
Web Analyst/Programmer
Ohio University
[EMAIL PROTECTED]
(740) 597-2524



----- Original Message -----
From: "Magnus Wallin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 16, 2000 9:44 AM
Subject: Writing Inluded output in a file?


Does anyone have a clue how to write the output of an includefile
  to a .txt document?


      /Magnus


  _________________________________________________toga.com_
  Sveav�gen 17 � 111 57 Stockholm � Sweden � Mail [EMAIL PROTECTED]
  Telefon +46 8 508 99 931 � Fax +46 8 508 99 902





----------------------------------------------------------------------------
--
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.

------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or 
send a message to [EMAIL PROTECTED] with 'unsubscribe' in 
the body.

________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com

------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to