Update TXT files?
2 posts by 2 authors in: Forums > CMS Builder
Last Post: August 5, 2009 (RSS)
I have a flash that basically reads a .txt file. nothing more. I do this with my ftp at moment but want the client to be able to update the text file.
is it possible to have CMS builder update a .txt file on the server. I dont want to have to recreate the flash file and data inputs.
again, im retrofitting CMS Builder into an existing site ... sorry
is it possible to have CMS builder update a .txt file on the server. I dont want to have to recreate the flash file and data inputs.
again, im retrofitting CMS Builder into an existing site ... sorry
Re: [aussierivers] Update TXT files?
By Chris - August 5, 2009
Hi aussierivers,
If you are able to change your flash file so that it requests a URL (getURL in AS2, URLRequest in AS3) from your web server instead of opening a file directly, this would be possible. It would then be a simple matter of setting up a Single Record Section with a bare-bones Viewer which only outputs your content field, having no HTML at all. You'll also want to change your Field Type from wysiwyg to text box to eliminate the <p> tags in your output.
Your Viewer will look something like this:
Please let me know how things are going, and I hope this helps!
If you are able to change your flash file so that it requests a URL (getURL in AS2, URLRequest in AS3) from your web server instead of opening a file directly, this would be possible. It would then be a simple matter of setting up a Single Record Section with a bare-bones Viewer which only outputs your content field, having no HTML at all. You'll also want to change your Field Type from wysiwyg to text box to eliminate the <p> tags in your output.
Your Viewer will look something like this:
<?php header('Content-type: text/plain; charset=utf-8'); ?>
<?php
...
?>
<?php echo $flash_inputRecord['content'] ?>
Please let me know how things are going, and I hope this helps!
All the best,
Chris
Chris